aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rw-r--r--trunk/src/createpkg10
1 files changed, 5 insertions, 5 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index c367d8c..0f47601 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -701,20 +701,20 @@ if [ $SIGN_PACKAGES -eq $on ]; then
check_gnupg $SIGN_PACKAGES_USER
if [ ! -z "$SIGN_PACKAGES_KEYID" ]; then
- SIGN_KEYID="-u $SIGN_PACKAGES_KEYID"
+ SIGN_KEYID="$SIGN_PACKAGES_KEYID"
else
if [ ! -z "$SIGN_PACKAGES_USER" ]; then
- SIGN_KEYID="-u `su $SIGN_PACKAGES_USER -c \
+ SIGN_KEYID="`su $SIGN_PACKAGES_USER -c \
"gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'"`"
else
- SIGN_KEYID="-u `gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'`"
+ SIGN_KEYID="`gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'`"
fi
fi
if [ ! -z "$SIGN_PACKAGES_USER" ]; then
- su $SIGN_PACKAGES_USER -c "gpg --use-agent --armor -sb $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME"
+ su $SIGN_PACKAGES_USER -c "gpg --use-agent --armor -sb -u $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME"
else
- gpg --use-agent --armor -sb $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME
+ gpg --use-agent --armor -sb -u $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME
fi
fi