]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
minor fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 18 Dec 2008 12:48:30 +0000 (12:48 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 18 Dec 2008 12:48:30 +0000 (12:48 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@676 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index fe908b56401e6ca0b5c40df1b39fcc70d0f0e700..c367d8c87c0cf82e3bd9f768b0f196bcd1e63de4 100644 (file)
@@ -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