aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg3
1 files changed, 3 insertions, 0 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 3fe392b..4b48854 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -716,7 +716,10 @@ if [ $SIGN_PACKAGES -eq $on ]; then
fi
if [ ! -z "$SIGN_PACKAGES_USER" ]; then
+ REPOSITORY_OWNER="$(get_owner $(dirname $PACKAGES_DIR))"
+ chown $SIGN_PACKAGES_USER `dirname $PACKAGES_DIR`
su $SIGN_PACKAGES_USER -c "gpg --use-agent --armor -sb -u $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME"
+ chown $REPOSITORY_OWNER `dirname $PACKAGES_DIR`
else
gpg --use-agent --armor -sb -u $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME
fi