diff --git a/ksh.changes b/ksh.changes index 14f0c78..4c4459e 100644 --- a/ksh.changes +++ b/ksh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 5 20:07:06 UTC 2010 - guido+opensuse.org@berhoerster.name + +- Add forgotten preun scriptlet for update-alternatives +- Fixed typo + ------------------------------------------------------------------- Fri Mar 5 14:38:39 CET 2010 - werner@suse.de diff --git a/ksh.spec b/ksh.spec index 355a6c7..4de667d 100644 --- a/ksh.spec +++ b/ksh.spec @@ -1,7 +1,7 @@ # # spec file for package ksh (Version 93t) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -431,7 +431,7 @@ test -e etc/bash.bashrc && ln -sf bash.bashrc etc/ksh.kshrc || true %if %suse_version > 1120 %{_sbindir}/update-alternatives \ --install /bin/ksh ksh /%{_lib}/ast/bin/ksh 20 \ - --slave %{_bindir}/ksh usr-bin-ksh /%{_lib}/ast/bin/ksh \ + --slave %{_bindir}/ksh usr-bin-ksh /%{_lib}/ast/bin/ksh \ --slave %{_mandir}/man1/ksh.1.gz ksh.1.gz %{_mandir}/man1/ksh93.1.gz %else if test -x %{_lib}/ast/bin/ksh ; then @@ -442,6 +442,13 @@ if test -x %{_lib}/ast/bin/ksh ; then fi %endif +%if %suse_version > 1120 +%preun +if [ $1 -eq 0 ]; then + /usr/sbin/update-alternatives --remove ksh /%{_lib}/ast/bin/ksh +fi +%endif + %postun if test ! -x %{_lib}/ast/bin/ksh ; then if test ! -x bin/pdksh ; then