blob: de397f02246dcedf005989c3b3f1832ce20d4fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
file="$1"
key="$2"
keydir="$3"
tmpfile=`/tmp/tmp.fMzaAHPDgM`
cp -p "$file" "$tmpfile"
rpm --delsign "$tmpfile"
/usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
while rpmsign -Kv "$tmpfile" 2>&1 | grep BAD
do
cp -p "$file" "$tmpfile"
/usr/bin/mga-signpackage "$tmpfile" "$key" "$keydir"
done
mv -f "$tmpfile" "$file"
|