]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils.sh: Use archive keyring for Jessie 1080/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 11 Jul 2018 15:35:43 +0000 (11:35 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 17 Jul 2018 15:51:59 +0000 (11:51 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/build_utils.sh

index 2d23af1ccf674d6f144acb6b3926f4ed7149194b..c0b9dd27334d412679bc1976df8f085c010d4f1d 100644 (file)
@@ -382,11 +382,18 @@ setup_pbuilder() {
 
     if [ $os = "debian" ]; then
         mirror="http://www.gtlib.gatech.edu/pub/debian"
-        # this assumes that newer Debian releases are being added to
-        # /etc/apt/trusted.gpg that is also the default location for Ubuntu trusted
-        # keys. The slave should ensure that the needed keys are added accordingly
-        # to this location.
-        debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/etc/apt/trusted.gpg" )'
+        if [ "$DIST" = "jessie" ]; then
+          # despite the fact we're building for jessie, pbuilder was failing due to
+          # missing wheezy key 8B48AD6246925553.  Pointing pbuilder at the archive
+          # keyring takes care of it.
+          debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/usr/share/keyrings/debian-archive-keyring.gpg" )'
+        else
+          # this assumes that newer Debian releases are being added to
+          # /etc/apt/trusted.gpg that is also the default location for Ubuntu trusted
+          # keys. The slave should ensure that the needed keys are added accordingly
+          # to this location.
+          debootstrapopts='DEBOOTSTRAPOPTS=( "--keyring" "/etc/apt/trusted.gpg" )'
+        fi
         components='COMPONENTS="main contrib"'
     elif [ "$ARCH" = "arm64" ]; then
         mirror="http://ports.ubuntu.com/ubuntu-ports"