aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-18 12:48:30 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-18 12:48:30 +0000
commit6943f66c6fbeef098d42b897c160b7496c89f21a (patch)
tree2591da68bd7ed8d4ef5c10f7ab176786346760d4 /trunk
parent11c2a7da4bef36942512c5f0ff7c77a4140c146d (diff)
downloadsimplepkg-6943f66c6fbeef098d42b897c160b7496c89f21a.tar.gz
simplepkg-6943f66c6fbeef098d42b897c160b7496c89f21a.tar.bz2
minor fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@676 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r--trunk/src/createpkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index fe908b5..c367d8c 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -704,9 +704,10 @@ if [ $SIGN_PACKAGES -eq $on ]; then
SIGN_KEYID="-u $SIGN_PACKAGES_KEYID"
else
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"`"
+ SIGN_KEYID="-u `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`"
+ 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)}'`"
fi
fi