From 2fe766d3707971e77aae8fb13fcdcd227d721190 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 11 Mar 2014 00:25:43 +0100 Subject: [PATCH] MT#6209 Install mirror signing key inside piuparts chroot Problem as noted in several piupart runs since 7th of March: | After purging files have been modified: /usr/lib/perl/5.14.2/Config_heavy.pl owned by: perl-base perl[-base] 5.14.2-21+deb7u1 was uploaded on 2013-09-29 (see http://packages.qa.debian.org/p/perl/news/20130929T211706Z.html), while our piuparts base.tgz files for wheezy have been created on 2013-08-19 with perl[-base] version 5.14.2-21. This means that on each piuparts run the perl-base package needs to be updated. When switching to our own Debian mirror using deb.sipwise.com (see MT#6171) this resulted in the following warning message: | W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.sip | W: Failed to fetch http://deb.sipwise.com/debian/dists/wheezy/Release This wasn't considered as a fatal error. But as a result our self-signed Debian repository caused apt-get to not consider packages from deb.sipwise.com for inclusion in the dist-upgrade process which is executed by piuparts. When installing the "Debian-package-under-test" though the perl-base package was considered as part of the installation, but perl-base was also upgraded during this installation process. The perl-base package actually *has* this flaw within the 5.14.2-21->5.14.2-21+deb7u1 upgrade, but it's not our problem. --- scripts/pre_install_add_sipwise_repos.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pre_install_add_sipwise_repos.sh b/scripts/pre_install_add_sipwise_repos.sh index 4dfb67b..edd5c2e 100755 --- a/scripts/pre_install_add_sipwise_repos.sh +++ b/scripts/pre_install_add_sipwise_repos.sh @@ -18,7 +18,10 @@ if [ -z "$release" ] ; then fi # make sure we can rely on wget being present for checks -type wget >/dev/null 2>&1 || apt-get -y install wget +type wget >/dev/null 2>&1 || apt-get --allow-unauthenticated -y install wget + +echo "** Setting up http://deb.sipwise.com/autobuild/680FBA8A.asc for apt-get usage ***" +wget -O - http://deb.sipwise.com/autobuild/680FBA8A.asc | apt-key add - TRUNK_RELEASE=false case "$release" in