mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 07:52:30 +00:00
fix for saintycheck
This commit is contained in:
parent
61cc69eac9
commit
fe74ef1b84
2
abuild
2
abuild
@ -48,7 +48,7 @@ sanitycheck() {
|
|||||||
[ -z "$pkgname" ] && die "Missing pkgname in APKBUILD"
|
[ -z "$pkgname" ] && die "Missing pkgname in APKBUILD"
|
||||||
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
|
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
|
||||||
[ -z "$pkgver" ] && die "Missing pkgver in APKBUILD"
|
[ -z "$pkgver" ] && die "Missing pkgver in APKBUILD"
|
||||||
[ "${pkgver##[0-9]}" != "$pkgver" ] && \
|
[ "${pkgver##[0-9]}" == "$pkgver" ] && \
|
||||||
die "pkgver does not start with a digit"
|
die "pkgver does not start with a digit"
|
||||||
[ -z "$pkgrel" ] && warning "Missing pkgrel in APKBUILD. Using pkgrel=0"
|
[ -z "$pkgrel" ] && warning "Missing pkgrel in APKBUILD. Using pkgrel=0"
|
||||||
[ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD"
|
[ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD"
|
||||||
|
Loading…
Reference in New Issue
Block a user