Guest User

Untitled

a guest
Apr 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. pvanhoof@lors:~/repos/maemo/system-services/system-services$ git diff
  2. diff --git a/system-services/tracker-init.conf b/system-services/tracker-init.conf
  3. index 48bf3c0..4c74b8a 100644
  4. --- a/system-services/tracker-init.conf
  5. +++ b/system-services/tracker-init.conf
  6. @@ -42,6 +42,25 @@ script
  7. touch_dir /home/user/.cache/media-art
  8. fi
  9.  
  10. + # Upgrade the media-art, this needs to be done only once after package upgrade
  11. + BASE=/home/user/.cache/media-art
  12. + if ! test -f "$BASE/.media-art-upgraded-1.0-to-1.2"; then
  13. + FILES=`ls $BASE`
  14. + for f in $FILES
  15. + do
  16. + PART1=`echo $f | cut -d '-' -f 2`
  17. + PART2=`echo $f | cut -d '-' -f 3`
  18. + if test x"$PART1" != x"7215ee9c7d9dc229d2921a40e899ec5f"; then
  19. + EXPECT="album-7215ee9c7d9dc229d2921a40e899ec5f-"$PART2
  20. + if ! test -f $EXPECT; then
  21. + mv $BASE/$f $BASE/$EXPECT
  22. + ln -s $BASE/$EXPECT $BASE/$f
  23. + fi
  24. + fi
  25. + done
  26. + touch $BASE/.media-art-upgraded-1.0-to-1.2
  27. + fi
  28. +
  29. sync
  30. #echo "startup: (`cut -d " " -f 1 /proc/uptime`) tracker-init done"
  31. end script
  32. pvanhoof@lors:~/repos/maemo/system-services/system-services$
Add Comment
Please, Sign In to add comment