[Piuparts-commits] [piuparts] 06/06: generalize linpopup exception

Holger Levsen holger at moszumanska.debian.org
Fri Jan 23 16:06:44 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 83b056e920cc9617a204d09d1e54ad56d98396d6
Author: Andreas Beckmann <anbe at debian.org>
Date:   Fri Jan 23 16:54:38 2015 +0100

    generalize linpopup exception
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/post_distupgrade_exceptions | 15 ++++++++++++++
 .../scripts/pre_remove_50_find_bad_permissions     | 23 +++++++++++++++-------
 2 files changed, 31 insertions(+), 7 deletions(-)

diff --git a/custom-scripts/scripts/post_distupgrade_exceptions b/custom-scripts/scripts/post_distupgrade_exceptions
index ff8aaf6..92a561b 100755
--- a/custom-scripts/scripts/post_distupgrade_exceptions
+++ b/custom-scripts/scripts/post_distupgrade_exceptions
@@ -5,6 +5,21 @@ log_debug() {
 	echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
 }
 
+if [ "$PIUPARTS_DISTRIBUTION" = "squeeze" ]; then
+
+	case ${PIUPARTS_OBJECTS%%=*} in
+		linpopup)
+			# package removed after lenny
+			log_debug
+			for file in /var/lib/linpopup/messages.dat
+			do
+				test ! -f "$file" || chmod -c o-w "$file"
+			done
+			;;
+	esac
+
+fi
+
 if [ "$PIUPARTS_DISTRIBUTION" = "wheezy" ]; then
 
 	case ${PIUPARTS_OBJECTS%%=*} in
diff --git a/custom-scripts/scripts/pre_remove_50_find_bad_permissions b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
index b4f4195..457ddf8 100755
--- a/custom-scripts/scripts/pre_remove_50_find_bad_permissions
+++ b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
@@ -1,6 +1,22 @@
 #!/bin/sh
 set -e
 
+case "$PIUPARTS_DISTRIBUTION" in
+lenny)
+
+    case ${PIUPARTS_OBJECTS%%=*} in
+	linpopup)
+		# package removed after lenny
+		for file in /var/lib/linpopup/messages.dat
+		do
+			test ! -f "$file" || chmod -c o-w "$file"
+		done
+		;;
+    esac
+
+;;
+esac
+
 if	[ "$PIUPARTS_DISTRIBUTION" = "squeeze" ] || \
 	[ "$PIUPARTS_DISTRIBUTION" = "squeeze/updates" ] || \
 	[ "$PIUPARTS_DISTRIBUTION" = "squeeze-updates" ] || \
@@ -16,13 +32,6 @@ case ${PIUPARTS_OBJECTS%%=*} in
 			test ! -f "$file" || chmod -c o-w "$file"
 		done
 		;;
-	linpopup)
-		# package removed in squeeze
-		for file in /var/lib/linpopup/messages.dat
-		do
-			test ! -f "$file" || chmod -c o-w "$file"
-		done
-		;;
 esac
 
 fi

-- 
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