[Piuparts-commits] [piuparts] 06/07: add exception for purging asclassic/lenny

Holger Levsen holger at moszumanska.debian.org
Fri Jul 3 09:37:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 94f3c846fdc92bcb3267d19c3065c94880bcbc14
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Jun 30 20:04:43 2015 +0200

    add exception for purging asclassic/lenny
    
    package was removed after lenny
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/post_remove_exceptions | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/custom-scripts/scripts/post_remove_exceptions b/custom-scripts/scripts/post_remove_exceptions
index 7a6258c..b0fec55 100755
--- a/custom-scripts/scripts/post_remove_exceptions
+++ b/custom-scripts/scripts/post_remove_exceptions
@@ -15,4 +15,16 @@ case ${PIUPARTS_OBJECTS%%=*} in
 				;;
 		esac
 		;;
+	asclassic)
+		case "$PIUPARTS_DISTRIBUTION" in
+			lenny)
+				# purging works in lenny
+				;;
+			*)
+				log_debug
+				# postrm purge unconditionally removes some files that may be gone already
+				sed -i 's/rm system.steprc menudefs.hook/rm -f system.steprc menudefs.hook/' /var/lib/dpkg/info/asclassic.postrm
+				;;
+		esac
+		;;
 esac

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list