diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-07 14:54:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-07 14:54:59 +0000 |
commit | 36a55af4a055de21ae36e45368b2d2f8a1fcb17a (patch) | |
tree | 2f6a3034e9457691caa9b2349329eb76bc6968e0 /abuild.in | |
parent | 3ac1b1294ac5881215add450ea5f346d9d234023 (diff) | |
download | abuild-36a55af4a055de21ae36e45368b2d2f8a1fcb17a.tar.gz abuild-36a55af4a055de21ae36e45368b2d2f8a1fcb17a.tar.bz2 abuild-36a55af4a055de21ae36e45368b2d2f8a1fcb17a.tar.xz abuild-36a55af4a055de21ae36e45368b2d2f8a1fcb17a.zip |
abuild: verify pkgdesc length
fixes #1477
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -132,6 +132,9 @@ default_sanitycheck() { [ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD" [ -z "$url" ] && die "Missing url in APKBUILD" [ -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" ] \ && ! echo $replaces_priority | egrep -q '^[0-9]+$'; then |