From 724b8f246f589fc27ada882f903f4242ada21e7a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 4 Apr 2012 10:19:55 +0000 Subject: Handle gpg signed dsc files git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@514 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- sbuild-stuff | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sbuild-stuff') diff --git a/sbuild-stuff b/sbuild-stuff index 8ffbd93..af08124 100755 --- a/sbuild-stuff +++ b/sbuild-stuff @@ -20,15 +20,6 @@ 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 @@ -64,7 +55,7 @@ fi metadata="$(get_metadata "$DSC")" read dscdist debian_version <<< "$metadata" -sourcepkg="$(gpgcat "$DSC" | grep-dctrl -n -s Source '')" +sourcepkg="$(grep-dctrl -n -s Source '' "$DSC")" if [ -z "${ARCH:-}" ]; then if [ "`uname -m`" = "x86_64" ]; then -- cgit v1.2.3