pkgmk: Remove check for empty $source in check_signature(), patch by just_fun
authorJuergen Daubert <jue@jue.li>
Tue, 28 Feb 2017 19:02:26 +0000 (20:02 +0100)
committerJuergen Daubert <jue@jue.li>
Tue, 28 Feb 2017 19:02:26 +0000 (20:02 +0100)
pkgmk.in

index d70d045e8fac690663b583b56817ca846662c79e..36f5d784505940698fc6f8514bedc230cd435b6c 100755 (executable)
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -294,11 +294,9 @@ check_signature() {
 
        if [ -f $PKGMK_ROOT/$PKGMK_SIGNATURE ]; then
                cd $SRC
-               if [ "$source" ]; then
-                       for FILE in "$PKGMK_PKGFILE" "$PKGMK_FOOTPRINT" ${source[@]}; do
-                               ln -s $(get_filename -a $FILE) .
-                       done
-               fi
+               for FILE in "$PKGMK_PKGFILE" "$PKGMK_FOOTPRINT" ${source[@]}; do
+                       ln -s $(get_filename -a $FILE) .
+               done
 
                if [ "$PKGMK_PUBLICKEY" ]; then
                        err=$(signify -q -C -p "$PKGMK_PUBLICKEY" -x "$PKGMK_ROOT/$PKGMK_SIGNATURE" 2>&1)