mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 00:12:19 +00:00
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:
parent
5a53fbc9b7
commit
5021e13ffa
6
abump.in
6
abump.in
@ -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; }
|
||||||
|
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user