Revert "abump: verify APKBUILD's version"

We actually want be able to re-run abump without needing reset the
pkgver in case we had to fix things.

This reverts commit 8198ded868.

Conflicts:
	abump.in
This commit is contained in:
Natanael Copa 2013-07-09 14:38:29 +00:00
parent 5a53fbc9b7
commit 5021e13ffa

View File

@ -37,12 +37,6 @@ do_bump() {
. "$a" || exit 1 . "$a" || exit 1
[ "$pkgname" = "$name" ] || die "APKBUILD has different \$pkgname for $name" [ "$pkgname" = "$name" ] || die "APKBUILD has different \$pkgname for $name"
type package | grep -q function || die "missing package() for $name" type package | grep -q function || die "missing package() for $name"
case $(apk version --test "$pkgver" "$ver") in
'=') die "$pkgname is already at version $pkgver";;
'>') die "$pkgname is already at newer version $pkgver";;
'<') exit 0;;
*) exit 1;;
esac
) || { rc=1; continue; } ) || { rc=1; continue; }
( (