r43876 - in /desktop/experimental/gnome-flashback/debian: gnome-session-flashback.postinst gnome-session-flashback.preinst gnome-session-flashback.prerm
mitya57-guest at users.alioth.debian.org
mitya57-guest at users.alioth.debian.org
Tue Nov 18 07:46:57 UTC 2014
Author: mitya57-guest
Date: Tue Nov 18 07:46:57 2014
New Revision: 43876
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=43876
Log:
Remove old alternative in preinst, not postinst
(to avoid warning about not existing file)
Added:
desktop/experimental/gnome-flashback/debian/gnome-session-flashback.preinst
Modified:
desktop/experimental/gnome-flashback/debian/gnome-session-flashback.postinst
desktop/experimental/gnome-flashback/debian/gnome-session-flashback.prerm
Modified: desktop/experimental/gnome-flashback/debian/gnome-session-flashback.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-flashback/debian/gnome-session-flashback.postinst?rev=43876&op=diff
==============================================================================
--- desktop/experimental/gnome-flashback/debian/gnome-session-flashback.postinst [utf-8] (original)
+++ desktop/experimental/gnome-flashback/debian/gnome-session-flashback.postinst [utf-8] Tue Nov 18 07:46:57 2014
@@ -3,11 +3,6 @@
set -e
if [ "$1" = configure ]; then
- # First, remove old alternative if it exists
- update-alternatives --remove \
- x-session-manager /usr/lib/gnome-panel/gnome-session-flashback
-
- # Now install the new alternative
update-alternatives --install /usr/bin/x-session-manager \
x-session-manager /usr/lib/gnome-flashback/gnome-flashback-metacity 40 \
--slave /usr/share/man/man1/x-session-manager.1.gz \
Added: desktop/experimental/gnome-flashback/debian/gnome-session-flashback.preinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-flashback/debian/gnome-session-flashback.preinst?rev=43876&op=file
==============================================================================
--- desktop/experimental/gnome-flashback/debian/gnome-session-flashback.preinst (added)
+++ desktop/experimental/gnome-flashback/debian/gnome-session-flashback.preinst [utf-8] Tue Nov 18 07:46:57 2014
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = upgrade ]; then
+ update-alternatives --remove \
+ x-session-manager /usr/lib/gnome-panel/gnome-session-flashback
+fi
+
+#DEBHELPER#
Modified: desktop/experimental/gnome-flashback/debian/gnome-session-flashback.prerm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gnome-flashback/debian/gnome-session-flashback.prerm?rev=43876&op=diff
==============================================================================
--- desktop/experimental/gnome-flashback/debian/gnome-session-flashback.prerm [utf-8] (original)
+++ desktop/experimental/gnome-flashback/debian/gnome-session-flashback.prerm [utf-8] Tue Nov 18 07:46:57 2014
@@ -3,7 +3,8 @@
set -e
if [ "$1" = "remove" ]; then
- update-alternatives --remove x-session-manager /usr/lib/gnome-flashback/gnome-flashback-metacity
+ update-alternatives --remove \
+ x-session-manager /usr/lib/gnome-flashback/gnome-flashback-metacity
fi
#DEBHELPER#
More information about the pkg-gnome-commits
mailing list