diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-11-07 09:00:01 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-11-07 09:00:01 +0100 |
commit | a30f36671d7626c8936b01036272f76282ba38bb (patch) | |
tree | 9d04596a9f8fd56a98057e8dfea238b160b4a756 /upgpkg | |
parent | 09563d56b4e854501c03f16dd5f7d84979475e26 (diff) | |
download | bin-a30f36671d7626c8936b01036272f76282ba38bb.tar.gz bin-a30f36671d7626c8936b01036272f76282ba38bb.tar.xz |
upgpkg: catch makepkg -g errors; remove gpgsource
gpg signature checking is now supported by makepkg directly.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'upgpkg')
-rwxr-xr-x | upgpkg | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -7,7 +7,7 @@ # I place this script in the public domain. -VERSION=0.4 +VERSION=0.5 # from makepkg unset ALL_OFF BOLD BLUE GREEN RED YELLOW @@ -102,7 +102,7 @@ fi sed -i "s/pkgver=.*$/pkgver=$1/g" PKGBUILD sed -i "s/pkgrel=.*$/pkgrel=1/g" PKGBUILD -makepkg -g +makepkg -g || exit 1 awk <PKGBUILD '$0 ~ /^(md5|sha[0-9]+)sums/ {i = 1; if(!run==1) {system("makepkg -g 2>/dev/null")}; run=1; }; !i {print}; $0 ~ /\)/ {i = 0}' | sponge PKGBUILD source PKGBUILD @@ -110,12 +110,4 @@ if [ -f "upgpkg" ]; then source ./upgpkg fi -for i in $gpgsource; do - sigfile="${i##*/}" - if [[ $sigfile != $i ]]; then - wget -nv -O "$sigfile" "$i" - fi - gpg2 --verify "$sigfile" || die "Signature verification failed!" -done - scriptlet build |