From bb23bf94bc0584e09d5cc7a5f9ea9ee75b6c19b0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 11 Mar 2012 16:14:50 +0000 Subject: Support gpg signed .dsc files git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@506 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- sbuild-stuff | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3