]> git.pld-linux.org Git - packages/zsh.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:23:04 +0000 (01:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    zsh.spec -> 1.133

zsh.spec

index 1cd053dd836357e610ccfd45bf5935d2afd66a99..76cd89e419cd5142ea0fdfd757e6b06502fdc371 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
@@ -216,12 +216,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 umask 022
 
 %post
 umask 022
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
 if [ ! -f /etc/shells ]; then
        echo "%{_bindir}/zsh" >> /etc/shells
 else
        grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
 fi
 if [ ! -f /etc/shells ]; then
        echo "%{_bindir}/zsh" >> /etc/shells
 else
        grep -q '^%{_bindir}/zsh$' /etc/shells || echo "%{_bindir}/zsh" >> /etc/shells
 fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
 for i in zlogin zlogout zprofile zshenv zshrc; do
        [ -f /etc/$i ] && zsh -c "zcompile /etc/$i"
 done
 for i in zlogin zlogout zprofile zshenv zshrc; do
        [ -f /etc/$i ] && zsh -c "zcompile /etc/$i"
 done
@@ -233,8 +233,8 @@ if [ "$1" = "0" ]; then
        mv -f /etc/shells.new /etc/shells
 fi
 
        mv -f /etc/shells.new /etc/shells
 fi
 
-%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}
 
 %post static
 umask 022
 
 %post static
 umask 022
This page took 0.043285 seconds and 4 git commands to generate.