aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-21 14:25:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-21 14:25:08 +0000
commita1bf67a46c336fde4c3157cca18ce51c5d1142b1 (patch)
tree9d0ea610a88f98bc59b40b293394acf7252a226d
parent32f3fce837569e2a3fb2545d8e09c95ae793ea47 (diff)
downloadaports-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.gz
aports-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.bz2
aports-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.xz
abuild: allow pkgver=volatile
-rwxr-xr-xabuild.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 8862a565e6..b718a6741f 100755
--- a/abuild.in
+++ b/abuild.in
@@ -95,8 +95,10 @@ sanitycheck() {
[ -z "$pkgname" ] && die "Missing pkgname in APKBUILD"
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
[ -z "$pkgver" ] && die "Missing pkgver in APKBUILD"
- apk version --check -q "$pkgver" ||\
- die "$pkgver is not a valid version"
+ if [ "$pkgver" != "volatile" ]; then
+ apk version --check -q "$pkgver" ||\
+ die "$pkgver is not a valid version"
+ fi
[ -z "$pkgrel" ] && warning "Missing pkgrel in APKBUILD. Using pkgrel=0"
[ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD"
[ -z "$url" ] && die "Missing url in APKBUILD"