aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg9
1 files changed, 8 insertions, 1 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 86be854..fe908b5 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -437,6 +437,7 @@ function update_metadata {
cd $makepkg_repos
+ repo_gpg_key $makepkg_repos
gen_meta $SUBFOLDER/$PKG_NAME
gen_filelist
update_md5_checksum $makepkg_repos $SUBFOLDER/$PKG_NAME
@@ -697,10 +698,16 @@ if [ $SIGN_PACKAGES -eq $on ]; then
echo "Signing package..."
+ check_gnupg $SIGN_PACKAGES_USER
+
if [ ! -z "$SIGN_PACKAGES_KEYID" ]; then
SIGN_KEYID="-u $SIGN_PACKAGES_KEYID"
else
- SIGN_KEYID=""
+ if [ ! -z "$SIGN_PACKAGES_USER" ]; then
+ SIGN_KEYID="-u `su $SIGN_PACKAGES_USER -c "gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5"`"
+ else
+ SIGN_KEYID="-u `gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5`"
+ fi
fi
if [ ! -z "$SIGN_PACKAGES_USER" ]; then