Hello community, here is the log from the commit of package gobby for openSUSE:Factory checked in at Tue Dec 8 11:30:50 CET 2009. -------- --- GNOME/gobby/gobby.changes 2009-08-19 18:33:12.000000000 +0200 +++ /mounts/work_src_done/STABLE/gobby/gobby.changes 2009-12-07 13:37:52.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Dec 7 13:35:43 CET 2009 - vuntz@opensuse.org + +- Rework the update-alternatives part to be correctly handle + package upgrades. Note that we need a %posttrans to work around + bugs in previously installed packages. + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gobby.spec ++++++ --- /var/tmp/diff_new_pack.xhWC1s/_old 2009-12-08 11:30:45.000000000 +0100 +++ /var/tmp/diff_new_pack.xhWC1s/_new 2009-12-08 11:30:45.000000000 +0100 @@ -31,10 +31,10 @@ BuildRequires: update-desktop-files # For directory ownership: BuildRequires: gnome-themes -License: GPL v2 only ; GPL v2 or later +License: GPLv2 ; GPLv2+ Group: Productivity/Editors/Other Version: 0.4.92 -Release: 2 +Release: 3 Summary: Gobby collaborative editor (Infinote protocol) Source: %{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM gobby-desktop.patch -- Remove icon extension @@ -90,10 +90,22 @@ rm -rf %{buildroot} %post +# If the %{name} group is in automatic mode, then this will also switch all +# symlinks automatically update-alternatives --install %{_bindir}/%{name} %{name} %{_bindir}/%{name}-0.5 5 --slave %{_mandir}/man1/%{name}.1.gz %{name}.1.gz %{_mandir}/man1/%{name}-0.5.1.gz %postun -update-alternatives --remove %{name} %{_bindir}/%{name}-0.5 +# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed +if [ ! -f %{_bindir}/%{name}-0.5 ]; then + update-alternatives --remove %{name} %{_bindir}/%{name}-0.5 +fi + +%posttrans +# Workaround old bug in 11.1/11.2 packages that always removed the symlinks in +# %postun. Can be removed during 12.2 development. +if [ ! -f %{_bindir}/%{name} -a -f %{_bindir}/%{name}-0.5 ]; then + update-alternatives --install %{_bindir}/%{name} %{name} %{_bindir}/%{name}-0.5 5 --slave %{_mandir}/man1/%{name}.1.gz %{name}.1.gz %{_mandir}/man1/%{name}-0.5.1.gz +fi %files %defattr (-, root, root) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org