From 24a61ecb21af40c02ecca8bb38fb1cd7ac837513ca3d07d70edb99a422b351e8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 23 May 2012 10:35:27 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=116 --- ksh.changes | 7 +++++++ ksh.spec | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ksh.changes b/ksh.changes index f47463c..01c5cee 100644 --- a/ksh.changes +++ b/ksh.changes @@ -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 diff --git a/ksh.spec b/ksh.spec index 8b2d74d..f765399 100644 --- a/ksh.spec +++ b/ksh.spec @@ -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