aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/signbot/sign-check-package
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/templates/signbot/sign-check-package')
-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"