diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-10-09 21:12:52 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-10-09 21:12:52 +0000 |
commit | 70829e2bafec49fba4aedf552671653902b6bad9 (patch) | |
tree | 9aa9920b27a0685d717a9fcfec0aa4540ee5ac69 /trunk/mkbuild/perl.mkSlackBuild | |
parent | eb3fb21b03ae731a246965a59e6916638772a4cd (diff) | |
download | simplepkg-70829e2bafec49fba4aedf552671653902b6bad9.tar.gz simplepkg-70829e2bafec49fba4aedf552671653902b6bad9.tar.bz2 |
Adding support for .sign signatures on mkSlackBuilds
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@822 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/mkbuild/perl.mkSlackBuild')
-rw-r--r-- | trunk/mkbuild/perl.mkSlackBuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index 8a6a88b..9e07195 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -156,12 +156,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 [ -f "$SRC_DIR/$SRC.sig" ]; then + if [ -s "$SRC_DIR/$SRC.sig" ]; then SIGNATURE="$SRC.sig" - elif [ -f "$SRC_DIR/$SRC.asc" ]; then + 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 @@ -173,11 +175,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... |