Commit 36a55af4 authored by Natanael Copa's avatar Natanael Copa

abuild: verify pkgdesc length

fixes #1477
parent 3ac1b129
...@@ -132,6 +132,9 @@ default_sanitycheck() { ...@@ -132,6 +132,9 @@ default_sanitycheck() {
[ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD" [ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD"
[ -z "$url" ] && die "Missing url in APKBUILD" [ -z "$url" ] && die "Missing url in APKBUILD"
[ -z "$license" ] && die "Missing license in APKBULID" [ -z "$license" ] && die "Missing license in APKBULID"
if [ $(echo "$pkgdesc" | wc -c) -gt 128 ]; then
die "pkgdesc is too long"
fi
if [ -n "$replaces_priority" ] \ if [ -n "$replaces_priority" ] \
&& ! echo $replaces_priority | egrep -q '^[0-9]+$'; then && ! echo $replaces_priority | egrep -q '^[0-9]+$'; then
......
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