# HG changeset patch # User Michal Vyskocil # Date 1272258719 -7200 # Node ID ae404bc8e61f144631138f8d7dfcb121b788f21f # Parent 0f98681914c3cadee6107db81ee4a554311960ee Linking to the stable api "link" makes patch version downgrades working with update alternatives (bnc#589037) diff -r 0f98681914c3 -r ae404bc8e61f mozilla-xulrunner192/mozilla-xulrunner192.spec --- a/mozilla-xulrunner192/mozilla-xulrunner192.spec Sat Apr 24 14:14:07 2010 +0200 +++ b/mozilla-xulrunner192/mozilla-xulrunner192.spec Mon Apr 26 07:11:59 2010 +0200 @@ -438,7 +438,7 @@ %post /usr/sbin/update-alternatives --install %{_bindir}/xulrunner \ xulrunner %{_libdir}/xulrunner-%{version_internal}/xulrunner %{uaweight} || : -%{_libdir}/xulrunner-%{version_internal}/add-plugins.sh > /dev/null 2>&1 +%{_libdir}/xulrunner-%{apiversion}/add-plugins.sh > /dev/null 2>&1 exit 0 %posttrans @@ -455,7 +455,7 @@ if [ "$1" = "0" ]; then # deinstallation # that's not quite nice since old versions should be removed on update as well # but that's problematic for updates w/o raising the version number - /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{version_internal}/xulrunner + /usr/sbin/update-alternatives --remove xulrunner %{_libdir}/xulrunner-%{apiversion}/xulrunner fi rm -f %{_libdir}/xulrunner-%{version_internal}/dictionaries/* exit 0