From: Elan Ruusamäe Date: Thu, 24 Jan 2008 01:23:04 +0000 (+0000) Subject: - invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep X-Git-Tag: auto/th/zsh-4_3_4-3~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fzsh.git;a=commitdiff_plain;h=9b9ba60ddaae7aa3f40856e50b840684ed015dda - invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep Changed files: zsh.spec -> 1.133 --- diff --git a/zsh.spec b/zsh.spec index 1cd053d..76cd89e 100644 --- a/zsh.spec +++ b/zsh.spec @@ -216,12 +216,12 @@ rm -rf $RPM_BUILD_ROOT %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 -[ ! -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 @@ -233,8 +233,8 @@ if [ "$1" = "0" ]; then 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