summaryrefslogtreecommitdiffstats
path: root/network/castor/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/castor/doinst.sh')
-rw-r--r--network/castor/doinst.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/network/castor/doinst.sh b/network/castor/doinst.sh
index 7bb20ae58a..65c7e2eeb9 100644
--- a/network/castor/doinst.sh
+++ b/network/castor/doinst.sh
@@ -1,6 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache -q usr/share/icons >/dev/null 2>&1
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
fi