]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- %update_icon_cache: touch icondir timestamp
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 4 Jan 2011 23:08:40 +0000 (23:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.601

rpm.macros

index 6068197990f2e1a670b6ef42cfce0e55dfec7d81..a52fcbb5cbc5829af64cf6222adc3691677e09a3 100644 (file)
@@ -751,9 +751,12 @@ fi; \
 # Requires:  hicolor-icon-theme
 #
 %update_icon_cache() {{ \
-       %{!?1:%{error:%{0}: Required icon dir missing}exit 1} \
-       umask 022; \
-       [ -x /usr/bin/gtk-update-icon-cache ] && /usr/bin/gtk-update-icon-cache -qf %{_datadir}/icons/%1 || :; \
+       %{!?1:%{error:%{0}: Required theme name missing}} \
+       if [ -x /usr/bin/gtk-update-icon-cache ]; then \
+               umask 022; \
+               touch --no-create %{_iconsdir}/%1; \
+               /usr/bin/gtk-update-icon-cache -qf %{_iconsdir}/%1; \
+       fi; \
 };} \
 %{nil}
 
This page took 0.140023 seconds and 4 git commands to generate.