Bug#524900: gnome-session: Do not remove alternative during upgrade.

Kurt Roeckx kurt at roeckx.be
Mon Apr 20 17:16:22 UTC 2009


Package: gnome-session
Version: 2.22.3-3

Hi,

The prerm script contains this:
if [ "$1" = "remove" ] || [ "$1" = upgrade ]; then
  update-alternatives --remove x-session-manager /usr/bin/gnome-session
  update-alternatives --remove desktop-splash \
    /usr/share/pixmaps/splash/gnome-splash.png
  update-alternatives --remove desktop-splash \
    /usr/share/pixmaps/splash/gnome-debian-splash.png
fi

If gnome-session is (manually) set to the default, it results
in this on uprade:
Preparing to replace gnome-session 2.22.3-3 (using .../gnome-session_2.22.3-3_amd64.deb) ...
Removing manually selected alternative - switching to auto mode
Unpacking replacement gnome-session ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Setting up gnome-session (2.22.3-3) ...

And suddenly I have an other session manager as the default.

I wonder if you just not remove it.  I'm not sure how
it's going to react when you --install it again during
the postinst.


Kurt







More information about the pkg-gnome-maintainers mailing list