summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-16 09:25:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-16 09:25:52 +0000
commit3ea1ead5896c559e83141440f39f7bd9512530c6 (patch)
tree943600e1594351acd0181c85f7b9aa0d408759c2 /abuild.in
parentd87b10b9af0fa91c707c02240060d3c11bce9ff3 (diff)
downloadabuild-3ea1ead5896c559e83141440f39f7bd9512530c6.tar.gz
abuild-3ea1ead5896c559e83141440f39f7bd9512530c6.tar.bz2
abuild-3ea1ead5896c559e83141440f39f7bd9512530c6.tar.xz
abuild-3ea1ead5896c559e83141440f39f7bd9512530c6.zip
abuild: dont check version number if nodeps is specified
This option is normally used for bootstrapping a build env. Chances are big that apk-tools is not around.
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 372dae4..e0d726b 100755
--- a/abuild.in
+++ b/abuild.in
@@ -86,7 +86,7 @@ sanitycheck() {
[ -z "$pkgname" ] && die "Missing pkgname in APKBUILD"
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
[ -z "$pkgver" ] && die "Missing pkgver in APKBUILD"
- if [ "$pkgver" != "volatile" ]; then
+ if [ "$pkgver" != "volatile" ] && [ -z "$nodeps" ]; then
apk version --check -q "$pkgver" ||\
die "$pkgver is not a valid version"
fi