Commit 8198ded8 authored by Dubiousjim's avatar Dubiousjim Committed by Natanael Copa

abump: verify APKBUILD's version

parent a10203d0
......@@ -37,6 +37,12 @@ do_bump() {
. "$a" || exit 1
[ "$pkgname" = "$name" ] || die "$name: APKBUILD has different \$pkgname"
type package | grep -q function || die "$name: missing package()"
case $(apk version --test "$pkgver" "$ver") in
'=') die "$pkgname: already at version $pkgver";;
'>') die "$pkgname: already at newer version $pkgver";;
'<') exit 0;;
*) exit 1;;
esac
) || { rc=1; continue; }
(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment