]> git.pld-linux.org Git - packages/am-utils.git/commitdiff
- removed Prereq: /usr/sbin/fix-info-dir
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Mon, 1 May 2000 20:11:40 +0000 (20:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix-info-dir in %pre/post is executed only when info is already
  installed

Changed files:
    am-utils.spec -> 1.9

am-utils.spec

index 1b4387d6c57369027655c49c5635ada233b8525a..68f9f4008dcd284b1211e7af524060911b9ada93 100644 (file)
@@ -14,7 +14,6 @@ Patch1:               am-utils-6.0a16-alpha.patch
 Patch2:                am-utils-6.0a16-glibc21.patch
 Requires:      portmap
 Prereq:                /sbin/chkconfig
-Prereq:                /usr/sbin/fix-info-dir
 Obsoletes:     amd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -77,10 +76,10 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/ldconfig
 /sbin/chkconfig --add amd
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/ldconfig
 if [ $1 = 0 ]; then
     /sbin/chkconfig --del amd
This page took 0.060389 seconds and 4 git commands to generate.