diff options
author | Erich Eckner <git@eckner.net> | 2016-04-20 10:39:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-20 11:08:13 +0200 |
commit | 048d8750d412646536a404f215e8a8afdbefbccd (patch) | |
tree | c622b01199d4abd2f2a74c10aac078e631af44f7 | |
parent | 65483350165e6369118ec71c9da7efa1e9fd14f7 (diff) | |
download | archlinuxewe.git.save-048d8750d412646536a404f215e8a8afdbefbccd.tar.xz |
archPackagesUpdate signiert nun notfalls auch von Hand
-rwxr-xr-x | archPackagesUpdate | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index a34b57cf..489eb2ed 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -297,7 +297,7 @@ then vers="${verss[${i}]}" cd "${tmpDir}/${paket}" - rm -f ${paket}-*-${arch}.pkg.tar.xz + rm -f ${paket}-*-${arch}.pkg.tar.xz* if [ "${arch}" == "i686" ] then @@ -328,6 +328,16 @@ then fi [ ${err[${i}]} -gt ${maxErr} ] && maxErr=${err[${i}]} + if ! gpg --verify ${paket}-${vers}-${arch}.pkg.tar.xz{.sig,} &> /dev/null + then + key="$( + grep '^GPGKEY=' "${tmpDir}/makepkg.conf" | \ + sed 's|^GPGKEY=\s*"\(.*\)"\s*$|0x\1|' + )" + rm -f "${paket}-${vers}-${arch}.pkg.tar.xz.sig" + gpg --detach-sign -u "${key}" --no-armor ${paket}-${vers}-${arch}.pkg.tar.xz + fi + if ${upload} && [ ${err[${i}]} -eq 0 ] then |