From 5279b2d827b2adcfe1210dba11a11d913a7c4ada Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Fri, 2 Jul 2010 15:32:02 +0200
Subject: [PATCH] ignore abort-upgrade

---
 autoscripts/preinst-pycentral-clean | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/autoscripts/preinst-pycentral-clean b/autoscripts/preinst-pycentral-clean
index 412602a..72cfa8e 100644
--- a/autoscripts/preinst-pycentral-clean
+++ b/autoscripts/preinst-pycentral-clean
@@ -1,6 +1,9 @@
 # make sure python-central files are removed before new package is installed
-if [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ]
-then
-	pycentral pkgremove #PACKAGE#
-	rm -f /var/lib/pycentral/#PACKAGE#.pkgremove
-fi
+case "$1" in
+    install|upgrade)
+	if [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ]
+	then
+		pycentral pkgremove #PACKAGE#
+		rm -f /var/lib/pycentral/#PACKAGE#.pkgremove
+	fi
+esac
-- 
GitLab