From e5d814c22b185a43e00345d74ebb537653190b63 Mon Sep 17 00:00:00 2001
From: joeyh <joeyh>
Date: Fri, 13 Jul 2007 18:52:46 +0000
Subject: [PATCH] r2017: * dh_icons: Check for index.theme files before
 updating the cache.   Closes: #432824

---
 autoscripts/postinst-icons | 2 +-
 debian/changelog           | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons
index d35f30c..951b613 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
diff --git a/debian/changelog b/debian/changelog
index 4abd07f..bdc42ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (5.0.53) unstable; urgency=low
+
+  * dh_icons: Check for index.theme files before updating the cache.
+    Closes: #432824
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 13 Jul 2007 14:51:00 -0400
+
 debhelper (5.0.52) unstable; urgency=low
 
   * Remove DOS line endings from dh_icons scriptlets. Thanks, Daniel Holbach.
-- 
2.39.5