[Piuparts-commits] [piuparts] 01/01: to reuse an old commit message: custom-scripts: properly disable apt-listbugs when testing it
Holger Levsen
holger at moszumanska.debian.org
Wed May 28 22:30:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 766980e0fe68e28962003c579caafd58b56a770e
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu May 29 00:30:10 2014 +0200
to reuse an old commit message: custom-scripts: properly disable apt-listbugs when testing it
---
custom-scripts/scripts/post_install_exceptions | 6 ++++--
custom-scripts/scripts/pre_remove_exceptions | 5 +++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/custom-scripts/scripts/post_install_exceptions b/custom-scripts/scripts/post_install_exceptions
index 11c2ca0..5838018 100755
--- a/custom-scripts/scripts/post_install_exceptions
+++ b/custom-scripts/scripts/post_install_exceptions
@@ -10,7 +10,9 @@ case ${PIUPARTS_OBJECTS%%=*} in
# when installed apt-listbugs is run on installations / upgrades
# and will cause them to fail due to prompting
# if packages being installed currently have RC bugs.
- # so disable it here.
- export APT_LISTBUGS_FRONTEND="none"
+ # so disable it here.
+ dpkg-divert --rename /usr/sbin/apt-listbugs
+
+ ln -svf /bin/true /usr/sbin/apt-listbugs
;;
esac
diff --git a/custom-scripts/scripts/pre_remove_exceptions b/custom-scripts/scripts/pre_remove_exceptions
index b8ee44b..b730b49 100755
--- a/custom-scripts/scripts/pre_remove_exceptions
+++ b/custom-scripts/scripts/pre_remove_exceptions
@@ -16,6 +16,11 @@ case ${PIUPARTS_OBJECTS%%=*} in
rm -fv /etc/isdn/*
fi
;;
+ apt-listbugs) log_debug
+ # cleanup from post_install_exceptions
+ dpkg-divert --remove /usr/sbin/apt-listbugs
+ rm /usr/sbin/apt-listbugs.distrib
+ ;;
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