From 4e6503249dc64810cb6d88552a8799f0803c4f63 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 10 Jul 2015 18:20:42 +0000 Subject: debian/tests: support ubuntu, by depending on its keyring and pass it to pbuilder --create Gbp-Dch: Ignore --- debian/tests/build-procenv | 5 ++++- debian/tests/control | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/tests/build-procenv b/debian/tests/build-procenv index bab2824..218db38 100644 --- a/debian/tests/build-procenv +++ b/debian/tests/build-procenv @@ -35,10 +35,12 @@ if [ "$distro" = debian ] ; then release=$(distro-info --testing) components="main" mirror="http://httpredir.debian.org/debian" + keyring="/usr/share/keyrings/debian-archive-keyring.gpg" elif [ "$distro" = ubuntu ] ; then release=$(distro-info --devel) components="main universe" mirror="http://archive.ubuntu.com/ubuntu" + keyring="/usr/share/keyrings/ubuntu-archive-keyring.gpg" else die "need to know where archive is for distro '$distro'" fi @@ -46,10 +48,11 @@ fi # Have to redirect stderr to avoid ADT thinking the test has failed # (the return code is still being checked, so this seems reasonable). echo "INFO: Creating pbuilder chroot for release '$release'" -echo "+ pbuilder --create --debug --distribution $release --components '$components' --mirror '$mirror'" +echo "+ pbuilder --create --debug --distribution '$release' --components '$components' --debootstrapopts --keyring='$keyring' --mirror '$mirror'" pbuilder --create --debug \ --distribution "$release" \ --components "$components" \ + --debootstrapopts --keyring="$keyring" \ --mirror "$mirror" 2>&1 if [ ! -d "$resultdir" ] ; then diff --git a/debian/tests/control b/debian/tests/control index ac186d2..5caf738 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,3 +1,3 @@ Tests: build-procenv -Depends: @, debian-keyring, distro-info, lsb-release +Depends: @, debian-keyring, distro-info, lsb-release, ubuntu-archive-keyring | ubuntu-keyring Restrictions: needs-root -- cgit v1.2.3