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.
This commit is contained in:
Natanael Copa 2009-12-16 09:25:52 +00:00
parent d87b10b9af
commit 3ea1ead589
1 changed files with 1 additions and 1 deletions

View File

@ -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