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:
parent
d87b10b9af
commit
3ea1ead589
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue