From 70829e2bafec49fba4aedf552671653902b6bad9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Oct 2009 21:12:52 +0000 Subject: Adding support for .sign signatures on mkSlackBuilds git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@822 04377dda-e619-0410-9926-eae83683ac58 --- trunk/mkbuild/python.mkSlackBuild | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'trunk/mkbuild/python.mkSlackBuild') diff --git a/trunk/mkbuild/python.mkSlackBuild b/trunk/mkbuild/python.mkSlackBuild index 144d6cc..46fec30 100644 --- a/trunk/mkbuild/python.mkSlackBuild +++ b/trunk/mkbuild/python.mkSlackBuild @@ -208,12 +208,14 @@ if echo [[SIGNING URL]] | grep -q -v "SIGNING URL"; then SIGNATURE="`basename [[SIGNING URL]]`" if [ ! -s "$SRC_DIR/$SIGNATURE" ]; then wget "[[SIGNING URL]]" -O "$SRC_DIR/$SIGNATURE" || exit $ERROR_WGET - fi + fi else if [ -s "$SRC_DIR/$SRC.sig" ]; then SIGNATURE="$SRC.sig" elif [ -s "$SRC_DIR/$SRC.asc" ]; then SIGNATURE="$SRC.asc" + elif [ -s "$SRC_DIR/$SRC.sign" ]; then + SIGNATURE="$SRC.sign" else echo Trying to get signature file from $URL.sig... if wget "$URL.sig" -O "$SRC_DIR/$SRC.sig"; then @@ -225,11 +227,17 @@ else SIGNATURE="$SRC.asc" else rm $SRC_DIR/$SRC.asc - echo "Error getting source's signature file" - exit $ERROR_GPG - fi - fi - fi + echo Trying to get signature file from $URL.sign... + if wget "$URL.sign" -O "$SRC_DIR/$SRC.sign"; then + SIGNATURE="$SRC.sign" + else + rm $SRC_DIR/$SRC.sign + echo "Error getting source's signature file" + exit $ERROR_GPG + fi + fi + fi + fi fi echo Checking $SRC_DIR/$SRC with gpg using $SRC_DIR/$SIGNATURE... -- cgit v1.2.3