]> git.pld-linux.org Git - packages/cpio.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:
    cpio.spec -> 1.22

cpio.spec

index b7dbc64ed0b0605521018f60da1f590825fcf517..86e33ea6d378ca844168e5070ac856f9fc00bdf0 100644 (file)
--- a/cpio.spec
+++ b/cpio.spec
@@ -19,7 +19,6 @@ Patch5:               cpio-longlongdev.patch
 Patch6:                cpio-DESTDIR.patch
 Patch7:                cpio-stdout.patch
 Patch8:                cpio-emptylink.patch
-Prereq:                /usr/sbin/fix-info-dir
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _exec_prefix    /
@@ -96,10 +95,10 @@ gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cpio*,%{_mandir}/man1/*} \
        README
 
 %post
-/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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.089401 seconds and 4 git commands to generate.