Dr. Werner Fink 2012-05-23 10:35:27 +00:00 committed by Git OBS Bridge
parent 6cd06caeb9
commit 24a61ecb21
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 23 10:33:09 UTC 2012 - werner@suse.de
- Better check on update for postun scriptlet and error correct with
an posttrans scriptlet, that is do not remove /etc/ksh.kshrc on
an update of an older ksh version (bnc#759730)
-------------------------------------------------------------------
Thu Mar 15 12:32:36 UTC 2012 - werner@suse.de

View File

@ -723,7 +723,7 @@ fi
%endif
%postun
if test ! -x bin/ksh ; then
if test $1 -eq 0 -a ! -x bin/ksh ; then
if test ! -x bin/pdksh ; then
rm -f etc/ksh.kshrc
fi
@ -732,6 +732,11 @@ if test ! -x bin/ksh ; then
%endif
fi
%posttrans
if test -x bin/ksh -o -x bin/pdksh ; then
test -e etc/bash.bashrc && ln -sf bash.bashrc etc/ksh.kshrc || true
fi
%files -f ksh.lang
%defattr(-,root,root)
%if %use_suid_exe