summaryrefslogtreecommitdiff
path: root/abuild.in
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 /abuild.in
parent32f3fce837569e2a3fb2545d8e09c95ae793ea47 (diff)
downloadabuild-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.gz
abuild-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.bz2
abuild-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.tar.xz
abuild-a1bf67a46c336fde4c3157cca18ce51c5d1142b1.zip
abuild: allow pkgver=volatile
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index 8862a56..b718a67 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"