From 13c4adbe31ab5af1487b4938d5ba552d4b5e5c08 Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@gmail.com>
Date: Mon, 8 Oct 2012 14:31:51 +0400
Subject: [PATCH] debian/python.postrm.in: Handle purge command the same way as
 remove (thanks to Mitsuya Shibata for the bug report)

---
 debian/changelog        | 5 +++++
 debian/python.postrm.in | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 15fcc7b..9f20f95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 python-defaults (2.7.3-3) UNRELEASED; urgency=low
 
+  [ Piotr Ożarowski ]
   * dh_python2:
     - no longer sensitive to trailing slash in private dir names
       (closes: #686358)
@@ -8,6 +9,10 @@ python-defaults (2.7.3-3) UNRELEASED; urgency=low
     - TODO: parse interpreter version number from --shebang option and add
       apropriate dependency/rt* script arguments
 
+  [ Dmitry Shachnev ]
+  * debian/python.postrm.in: Handle purge command the same way as remove
+    (thanks to Mitsuya Shibata for the bug report)
+
  -- Piotr Ożarowski <piotr@debian.org>  Fri, 31 Aug 2012 18:06:26 +0200
 
 python-defaults (2.7.3-2) unstable; urgency=low
diff --git a/debian/python.postrm.in b/debian/python.postrm.in
index 0ffa3ce..9941769 100644
--- a/debian/python.postrm.in
+++ b/debian/python.postrm.in
@@ -1,8 +1,7 @@
 #! /bin/sh
 set -e
 
-case "$1" in
-    purge)
+case "$1" in remove|purge)
 	rm -rf /etc/python
 esac
 
-- 
GitLab