summaryrefslogtreecommitdiffstats
path: root/upgpkg
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-11-07 09:00:01 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-11-07 09:00:01 +0100
commita30f36671d7626c8936b01036272f76282ba38bb (patch)
tree9d04596a9f8fd56a98057e8dfea238b160b4a756 /upgpkg
parent09563d56b4e854501c03f16dd5f7d84979475e26 (diff)
downloadbin-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-xupgpkg12
1 files changed, 2 insertions, 10 deletions
diff --git a/upgpkg b/upgpkg
index df3dac9..2c3963e 100755
--- a/upgpkg
+++ b/upgpkg
@@ -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