aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-04-19 22:42:58 +0000
committerNicolas Vigier <boklm@mageia.org>2012-04-19 22:42:58 +0000
commitf621253a4ede7b92e5dd44373d6bfea00e4fbf55 (patch)
tree1ccdd947752c43642f86920ec3c48dcc795b42aa /modules
parentc54179d1f6d137f4004b2bc4567ffed70101c0ec (diff)
downloadpuppet-f621253a4ede7b92e5dd44373d6bfea00e4fbf55.tar
puppet-f621253a4ede7b92e5dd44373d6bfea00e4fbf55.tar.gz
puppet-f621253a4ede7b92e5dd44373d6bfea00e4fbf55.tar.bz2
puppet-f621253a4ede7b92e5dd44373d6bfea00e4fbf55.tar.xz
puppet-f621253a4ede7b92e5dd44373d6bfea00e4fbf55.zip
use empty temporary directory to sign packages
Diffstat (limited to 'modules')
-rw-r--r--modules/buildsystem/templates/signbot/sign-check-package4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/buildsystem/templates/signbot/sign-check-package b/modules/buildsystem/templates/signbot/sign-check-package
index b0b01576..cf9135e8 100644
--- a/modules/buildsystem/templates/signbot/sign-check-package
+++ b/modules/buildsystem/templates/signbot/sign-check-package
@@ -10,7 +10,8 @@ file="$1"
key="$2"
keydir="$3"
-tmpfile=`mktemp`
+tmpdir=`mktemp -d signbot-XXXXX`
+tmpfile="$tmpdir/$(basename $file)"
cp -pf "$file" "$tmpfile"
rpm --delsign "$tmpfile"
/usr/local/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
@@ -33,3 +34,4 @@ do
/usr/local/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
done
mv -f "$tmpfile" "$file"
+rmdir "$tmpdir"