cookutils diff modules/precheck @ rev 1077
lighttpd/cooker.css: revert main h2 line height, carry this style to #hdr h2 only; lighttpd/index.cgi: add link to Tank RRD Stats in the footer; package -> files: display SUID files in violet color
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 13 14:14:45 2018 +0300 (2018-06-13) |
parents | 772ff37fe068 |
children | f77e48e58ac0 |
line diff
1.1 --- a/modules/precheck Sun Nov 26 21:33:23 2017 +0000 1.2 +++ b/modules/precheck Wed Jun 13 14:14:45 2018 +0300 1.3 @@ -7,6 +7,8 @@ 1.4 1.5 . /usr/lib/slitaz/libcook.sh 1.6 1.7 +# Return immediately if QA is not used 1.8 +[ -n "$QA" ] || return 0 1.9 1.10 receipt="$(realpath $1)" 1.11 1.12 @@ -22,8 +24,10 @@ 1.13 CATEGORY) 1.14 valid="$(echo $PKGS_CATEGORIES)" # avoid newlines 1.15 if ! echo " $valid " | grep -q " $value "; then 1.16 + newline 1.17 _ 'QA: unknown category "%s"' "$value" 1.18 - die 'Please, use one of: %s' "$valid" 1.19 + longline "Please, use one of: $valid" 1.20 + die 1.21 fi 1.22 ;; 1.23 WEB_SITE)