[Piuparts-devel] piuparts test failed for apt-listbugs: please help!
Holger Levsen
holger at layer-acht.org
Wed May 28 22:32:52 UTC 2014
Hi,
On Mittwoch, 28. Mai 2014, Holger Levsen wrote:
> So I'm now implementing the dpkg-divert solution as suggested by Andreas
> two days ago...
done.
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
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.
~
cheers,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20140529/9ea24b29/attachment.sig>
More information about the Piuparts-devel
mailing list