]> git.pld-linux.org Git - packages/ed.git/commitdiff
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Jan 2008 01:22:59 +0000 (01:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ed.spec -> 1.66

ed.spec

diff --git a/ed.spec b/ed.spec
index bd015257120bfcd26d175ccdc4d3c7ad4cd1c2dd..fc308dfbd94376f9da4d0623cc6b8b3437961515 100644 (file)
--- a/ed.spec
+++ b/ed.spec
@@ -109,11 +109,11 @@ bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
 %defattr(644,root,root,755)
This page took 0.082499 seconds and 4 git commands to generate.