]> git.proxmox.com Git - pve-manager.git/commitdiff
postinst: combine abort-* cases and remove boilerplate cruft
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Mar 2018 13:14:00 +0000 (14:14 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 12 Mar 2018 14:13:48 +0000 (15:13 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst

index c8cf33e961bd8deb63a9ff2cedfb6fee2d48d950..ca2696129608c5d0753659d20f6838b6ed52c8ed 100755 (executable)
@@ -144,35 +144,10 @@ EOF
       fi
 
     fi ;;
-  abort-upgrade)
-    # Back out of an attempt to upgrade this package FROM THIS VERSION
-    # to version $2.  Undo the effects of "prerm upgrade $2".
-    :
 
+  abort-upgrade|abort-remove|abort-deconfigure)
     ;;
-  abort-remove)
-    if test "$2" != in-favour; then
-      echo "$0: undocumented call to \`postinst $*'" 1>&2
-      exit 0
-    fi
-    # Back out of an attempt to remove this package, which was due to
-    # a conflict with package $3 (version $4).  Undo the effects of
-    # "prerm remove in-favour $3 $4".
-    :
 
-    ;;
-  abort-deconfigure)
-    if test "$2" != in-favour -o "$5" != removing; then
-      echo "$0: undocumented call to \`postinst $*'" 1>&2
-      exit 0
-    fi
-    # Back out of an attempt to deconfigure this package, which was
-    # due to package $6 (version $7) which we depend on being removed
-    # to make way for package $3 (version $4).  Undo the effects of
-    # "prerm deconfigure in-favour $3 $4 removing $6 $7".
-    :
-
-    ;;
   *) echo "$0: didn't understand being called with \`$1'" 1>&2
      exit 0;;
 esac