diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-20 16:22:58 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-20 16:23:58 +0200 |
commit | e9360f6250a118ae1b890d81c715bf023b4798ab (patch) | |
tree | 75296c641fc0f348f6274dda63228ddb76454478 | |
parent | ddffb491fb7c428f2e57281458fc5153d2e0fdb0 (diff) | |
download | buildscripts-e9360f6250a118ae1b890d81c715bf023b4798ab.tar.gz buildscripts-e9360f6250a118ae1b890d81c715bf023b4798ab.tar.bz2 buildscripts-e9360f6250a118ae1b890d81c715bf023b4798ab.zip |
sbuild-deb-package: Support obtaining OTHERMIRROR archive key on-the-fly via curl call.
-rwxr-xr-x | bin/sbuild-deb-package | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package index 9f30090..0154b39 100755 --- a/bin/sbuild-deb-package +++ b/bin/sbuild-deb-package @@ -309,6 +309,13 @@ build_packages() { DSCFILE="$(pwd)/$(ls -1 "${DEBSRCPKG}_"*.dsc | head -n1)" SBUILD_OPTIONS="-n -j2 -sAd ${codename} -k ${GPG_KEY} --build-dep-resolver=aptitude" + + curl http://${REPOS_SERVER}${REPOS_BASE}/archive.key 2>/dev/null 1> ${TEMP_DIR}/extra-archive.key + if head -n1 ${TEMP_DIR}/extra-archive.key | grep -q -E '\-----BEGIN PGP PUBLIC KEY BLOCK-----' && + tail -n1 ${TEMP_DIR}/extra-archive.key | grep -q -E '\-----END PGP PUBLIC KEY BLOCK-----'; then + SBUILD_OPTIONS="${SBUILD_OPTIONS} --extra-repository-key=${TEMP_DIR}/extra-archive.key" + fi + SBUILD_OPTIONS_64="${SBUILD_OPTIONS} -c ${PREFIX}-${l_CODENAME}" SBUILD_OPTIONS_32="${SBUILD_OPTIONS} -c ${PREFIX}-${l_CODENAME}-i386 --arch=i386 --debbuildopts=-B" if [ -n "${SA_OPTION}" ]; then |