From 709b4036a3905a99ef68de48ea337fd49100b10f Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@gmail.com>
Date: Tue, 9 Oct 2012 14:27:24 +0400
Subject: [PATCH] Apply a similar fix to debian/python.prerm.in

---
 debian/changelog       | 4 ++--
 debian/python.prerm.in | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9f20f95..425d247 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,8 +10,8 @@ python-defaults (2.7.3-3) UNRELEASED; urgency=low
       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)
+  * debian/python.{pre,post}rm.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
 
diff --git a/debian/python.prerm.in b/debian/python.prerm.in
index 0218969..04093eb 100644
--- a/debian/python.prerm.in
+++ b/debian/python.prerm.in
@@ -1,8 +1,7 @@
 #! /bin/sh
 set -e
 
-case "$1" in
-    remove)
+case "$1" in remove|purge)
 	rm -f /usr/share/python/pyversions.py[co]
 esac
 
-- 
GitLab