Obsolete golang-120
[oi-userland.git] / components / desktop / desktop-cache / patches / 06-trust-find-newer.patch
blob6f822493e24aa9aa9abb55ff9389b79d1afd27ed
1 Sometimes gtk-update-icon-cache and find_newer do not agree if cache modification is necessary.
2 In this case we trust find_newer to avoid calling gtk-update-icon-cache over and over again
4 --- desktop-cache-smf-services-0.2.2/icon-cache/icon-cache.orig
5 +++ desktop-cache-smf-services-0.2.2/icon-cache/icon-cache
6 @@ -78,7 +78,7 @@
7 echo "Icons newer than the cache found in $DIR. Updating the cache."
8 fi
9 rm -f $DIR/.icon-theme.cache
10 - /usr/bin/gtk-update-icon-cache $DIR
11 + /usr/bin/gtk-update-icon-cache -f $DIR
12 if [ $? -ne 0 ]; then
13 echo "/usr/bin/gtk-update-icon-cache exited with an error while \
14 generating the icon cache for $DIR."
15 @@ -117,7 +117,7 @@
16 echo "Icons newer than the cache found in $DIR. Updating the cache."
18 rm -f $DIR/.icon-theme.cache
19 - /usr/bin/gtk-update-icon-cache $DIR
20 + /usr/bin/gtk-update-icon-cache -f $DIR
21 if [ $? -ne 0 ]; then
22 echo "/usr/bin/gtk-update-icon-cache exited with an error while \
23 generating the icon cache for $DIR."