]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
ghc_pkg_recache: ghc-pkg may be missing if ghc itself is uninstalled auto/th/rpm-build-macros-1.663-2
authorElan Ruusamäe <glen@delfi.ee>
Wed, 29 May 2013 14:45:33 +0000 (17:45 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 29 May 2013 14:45:33 +0000 (17:45 +0300)
rpm-build-macros.spec
rpm.macros

index dcea63338a0955a83b12dba1e521246c17062fce..e0cd320251c5df758f5dede2db9148a21a6d2b41 100644 (file)
@@ -4,7 +4,7 @@ Summary:        PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
 Name:          rpm-build-macros
 Version:       %{rpm_macros_rev}
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Building
 Source0:       rpm.macros
index 6ee8d6beedebe0c378f0bf2a9b1295f6da7e2616..d0fe128f5ccfdc77523c38dd34537926077d9e48 100644 (file)
@@ -2179,7 +2179,7 @@ fi; \
 #
 %ghc_pkg_recache() {{ \
        umask 022; \
-       /usr/bin/ghc-pkg recache; \
+       [ ! -x /usr/bin/ghc-pkg ] || /usr/bin/ghc-pkg recache; \
 };} \
 %{nil}
 
This page took 0.067933 seconds and 4 git commands to generate.