diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-18 13:55:52 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-18 13:55:52 +0000 |
commit | a205adba9cf8abdc8854144bb9ed6e05f44e1f42 (patch) | |
tree | 580c0989f774544f1976a3d5094c925a3d4dbdd8 | |
parent | 8ec1c967d888467977706c779e4f08bee64315fb (diff) | |
download | simplepkg-a205adba9cf8abdc8854144bb9ed6e05f44e1f42.tar.gz simplepkg-a205adba9cf8abdc8854144bb9ed6e05f44e1f42.tar.bz2 |
minor fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@687 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/src/createpkg | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg index 498a689..a46b911 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -716,13 +716,10 @@ if [ $SIGN_PACKAGES -eq $on ]; then fi if [ ! -z "$SIGN_PACKAGES_USER" ]; then - if tmpfile="`su $SIGN_PACKAGES_USER -c "mktemp $TMP/createpkg_sig.XXXXXX"`"; then - su $SIGN_PACKAGES_USER -c "gpg --use-agent --armor -sb -u $SIGN_KEYID -o $tmpfile $PACKAGES_DIR/$PKG_NAME" - cp $tmpfile $PACKAGES_DIR/$PKG_NAME.asc - su $SIGN_PACKAGES_USER -c "rm -f $tmpfile" - else - echo "Error signing package: could not create tmp file." - fi + rm -f $TMP/$PKG_NAME.asc + su $SIGN_PACKAGES_USER -c "gpg --use-agent --armor -sb -u $SIGN_KEYID -o $TMP/$PKG_NAME.asc $PACKAGES_DIR/$PKG_NAME" + cp $TMP/$PKG_NAME.asc $PACKAGES_DIR/$PKG_NAME.asc + rm -f $TMP/$PKG_NAME.asc else gpg --use-agent --armor -sb -u $SIGN_KEYID $PACKAGES_DIR/$PKG_NAME fi |