From 9b9ba60ddaae7aa3f40856e50b840684ed015dda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 24 Jan 2008 01:23:04 +0000 Subject: [PATCH] - invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep Changed files: zsh.spec -> 1.133 --- zsh.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.43.0