[Piuparts-commits] [piuparts] 08/08: add exception roger-router-cli using lpadmin in the postinst

Holger Levsen holger at moszumanska.debian.org
Mon Feb 9 13:37:27 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 eadb7e8949892928e637f53cfd03c14539f3620c
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Feb 9 13:36:41 2015 +0100

    add exception roger-router-cli using lpadmin in the postinst
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/pre_install_exceptions | 7 +++++++
 custom-scripts/scripts/pre_remove_exceptions  | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/custom-scripts/scripts/pre_install_exceptions b/custom-scripts/scripts/pre_install_exceptions
index ae89cb0..162922e 100755
--- a/custom-scripts/scripts/pre_install_exceptions
+++ b/custom-scripts/scripts/pre_install_exceptions
@@ -65,6 +65,13 @@ case ${PIUPARTS_OBJECTS%%=*} in
 				# ltsp-client-core refuses installation unless this file exist
 				touch /etc/ltsp_chroot
 				;;
+	ffgtk|\
+	roger-router|\
+	roger-router-cli)
+			log_debug
+			# postinst tries to add a printer with lpadmin
+			dpkg-divert --rename /usr/sbin/lpadmin
+			;;
 	bugzilla3)
 			# checksetup.pl goes into infinite loop asking for them
 			log_debug
diff --git a/custom-scripts/scripts/pre_remove_exceptions b/custom-scripts/scripts/pre_remove_exceptions
index ed56aa0..b431250 100755
--- a/custom-scripts/scripts/pre_remove_exceptions
+++ b/custom-scripts/scripts/pre_remove_exceptions
@@ -19,6 +19,13 @@ case ${PIUPARTS_OBJECTS%%=*} in
 		rm -f /usr/sbin/apt-listbugs
 		dpkg-divert --remove --rename /usr/sbin/apt-listbugs
 		;;
+	ffgtk|\
+	roger-router|\
+	roger-router-cli)
+		log_debug
+		# cleanup from pre_install_exceptions
+		dpkg-divert --remove --rename /usr/sbin/lpadmin
+		;;
 esac
 
 # Allow removal of the kernel running on the host from the chroot.

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