summaryrefslogtreecommitdiff
path: root/sbuild-stuff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2012-03-11 16:14:50 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2012-03-11 16:14:50 +0000
commitbb23bf94bc0584e09d5cc7a5f9ea9ee75b6c19b0 (patch)
tree3d098ab57fb122022e2f64d33fcf6bac987f53c0 /sbuild-stuff
parent025865c2198a7b93fd2eb0c3e3d0a905cd3128ef (diff)
Support gpg signed .dsc files
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@506 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'sbuild-stuff')
-rwxr-xr-xsbuild-stuff11
1 files changed, 10 insertions, 1 deletions
diff --git a/sbuild-stuff b/sbuild-stuff
index af08124..8ffbd93 100755
--- a/sbuild-stuff
+++ b/sbuild-stuff
@@ -20,6 +20,15 @@ if ! which changestool > /dev/null; then
exit 1
fi
+gpgcat() {
+ local f="$1"
+ if egrep -q "^-----BEGIN PGP SIGNED MESSAGE-----" "$f"; then
+ gpg < "$f"
+ else
+ cat "$f"
+ fi
+}
+
get_metadata() {
local dsc="$1"; shift
@@ -55,7 +64,7 @@ fi
metadata="$(get_metadata "$DSC")"
read dscdist debian_version <<< "$metadata"
-sourcepkg="$(grep-dctrl -n -s Source '' "$DSC")"
+sourcepkg="$(gpgcat "$DSC" | grep-dctrl -n -s Source '')"
if [ -z "${ARCH:-}" ]; then
if [ "`uname -m`" = "x86_64" ]; then