Commit 3ea1ead5 authored by Natanael Copa's avatar Natanael Copa

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.
parent d87b10b9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment