Package: ratpoison
Version: 1.4.0.dfsg-2
Severity: wishlist
Tags: patch

In the "deconfigure" case, a dependency has been removed, so stop
advertising as an available windowmanager.  "failed-upgrade" is a
reattempt at "upgrade" using the script from the new packages; make it
more intuitive.

--- /var/lib/dpkg/info/ratpoison.prerm  2006-05-21 18:16:40.000000000 -0400
+++ /tmp/ratpoison.prerm        2006-06-18 13:58:37.000000000 -0400
@@ -4,16 +4,14 @@
 set -e
 
 case "$1" in
-    remove)
+    remove|deconfigure)
        update-alternatives --remove x-window-manager /usr/bin/ratpoison
        if [ -d /var/lib/ratpoison/menu ] ; then
                rm /var/lib/ratpoison/menu/*.menu || true
        fi
         ;;
-    upgrade|deconfigure)
+    upgrade|failed-upgrade)
        ;;
-    failed-upgrade)
-        ;;
     *)
         echo "prerm called with unknown argument \`$1'" >&2
         exit 1

Implement dpkg rollbacks for prerm abort-[remove|deconfigure].

--- /var/lib/dpkg/info/ratpoison.postinst       2006-05-21 18:16:40.000000000 
-0400
+++ /tmp/ratpoison.postinst     2006-06-18 13:54:09.000000000 -0400
@@ -4,7 +4,7 @@
 set -e
 
 case "$1" in
-    configure)
+    configure|abort-remove|abort-deconfigure)
 # 20 to start with, 
 # plus 20 as we have menu support configured 
 # (and working if 9menu and menu are installed)
@@ -15,8 +15,8 @@
                x-window-manager.1.gz /usr/share/man/man1/ratpoison.1.gz
     ;;
 
-    abort-upgrade|abort-remove|abort-deconfigure)
-
+    abort-upgrade)
+       # preinst upgrade does nothing; nothing to undo.
     ;;
 
     *)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to