summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-icons
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-07-13 18:52:46 +0000
committerjoeyh <joeyh>2007-07-13 18:52:46 +0000
commite5d814c22b185a43e00345d74ebb537653190b63 (patch)
tree8033cbcf813cca6d16528994d6793a88a326d16d /autoscripts/postinst-icons
parent092d35e2e000f4c812f4165a0d0af3a48b084e57 (diff)
r2017: * dh_icons: Check for index.theme files before updating the cache.
Closes: #432824
Diffstat (limited to 'autoscripts/postinst-icons')
-rw-r--r--autoscripts/postinst-icons2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons
index d35f30c0..951b613d 100644
--- a/autoscripts/postinst-icons
+++ b/autoscripts/postinst-icons
@@ -1,6 +1,6 @@
if which gtk-update-icon-cache >/dev/null 2>&1; then
for dir in #DIRLIST#; do
- if [ -f "$dir"/icon-theme.cache ]; then
+ if [ -f "$dir"/index.theme ] && [ -f "$dir"/icon-theme.cache ]; then
gtk-update-icon-cache --force --quiet "$dir"
fi
done