Hello community, here is the log from the commit of package update-alternatives checked in at Thu Nov 8 22:52:29 CET 2007. -------- --- update-alternatives/update-alternatives.changes 2006-01-25 21:48:53.000000000 +0100 +++ /mounts/work_src_done/NOARCH/update-alternatives/update-alternatives.changes 2007-11-06 18:53:07.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Nov 6 18:53:00 CET 2007 - mvyskocil@suse.cz + +- fix the manual link state after --install and --remove commands [#334783] + +------------------------------------------------------------------- New: ---- update-alternatives-manual-state.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ update-alternatives.spec ++++++ --- /var/tmp/diff_new_pack.y24217/_old 2007-11-08 22:50:19.000000000 +0100 +++ /var/tmp/diff_new_pack.y24217/_new 2007-11-08 22:50:19.000000000 +0100 @@ -1,26 +1,27 @@ # # spec file for package update-alternatives (Version 1.8.3) # -# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: update-alternatives -URL: http://www.debian.org/ +Url: http://alternatives.sourceforge.net/ %define jpackage-section free Version: 1.8.3 -Release: 5 +Release: 79 Summary: Maintain symbolic links determining default commands -License: GPL +License: GPL v2 or later Group: System/Management Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-script.patch Patch1: %{name}-man.patch +Patch2: %{name}-manual-state.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: no @@ -46,6 +47,7 @@ %setup -q %patch0 %patch1 +%patch2 -b .sav %build # Nope. @@ -71,8 +73,9 @@ # Paths hardcoded in script and patch0. /etc/alternatives /var/lib/rpm/alternatives - -%changelog -n update-alternatives +%changelog +* Tue Nov 06 2007 - mvyskocil@suse.cz +- fix the manual link state after --install and --remove commands [#334783] * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Sep 29 2005 - dmueller@suse.de ++++++ update-alternatives-manual-state.patch ++++++ --- update-alternatives.pl +++ update-alternatives.pl @@ -205,7 +205,9 @@ } if (defined($linkname= readlink("$altdir/$name"))) { - if ($linkname eq $best) { + if (! -e $linkname) { # handle broken links as nonexistent + $state= 'nonexistent'; + } elsif ($linkname eq $best) { $state= 'expected'; } elsif (defined($linkname2= readlink("$altdir/$name.rpm-tmp"))) { $state= 'expected-inprogress'; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org