cookutils diff modules/postcheck @ rev 1116

cook, modules/precheck: provide CATEGORY="nopack"; modules/pack: improve variables handling; modules/postcheck: display badge "old" both with any other badges
:
CATEGORY="nopack" is useful in the case, for example, when receipt called "libappindicator" but we want to produce only two sub-packages: "libappindicator-gtk2" and "libappindicator-gtk3" and don't want to pack "libappindicator".
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 17 01:16:27 2018 +0200 (2018-12-17)
parents 41c25139be4d
children 8cf248ef571e
line diff
     1.1 --- a/modules/postcheck	Wed Dec 05 17:04:10 2018 +0200
     1.2 +++ b/modules/postcheck	Mon Dec 17 01:16:27 2018 +0200
     1.3 @@ -133,7 +133,7 @@
     1.4  				add 'libtool'
     1.5  			fi
     1.6  		else
     1.7 -			if grep -q '^fix.libtool$' $WOK/$1/.patch.done 2>/dev/null; then
     1.8 +			if grep -q '^\s*fix libtool' $WOK/$1/receipt 2>/dev/null; then
     1.9  				add 'nolibtool'
    1.10  			fi
    1.11  		fi
    1.12 @@ -269,9 +269,9 @@
    1.13  	if [ "$REPOLOGY" != '-' ]; then
    1.14  		action 'Querying Repology...'
    1.15  		repo_ver=$(repology_get ${REPOLOGY:-$PACKAGE})
    1.16 -		if [ "$repo_ver" != '-' -a ! -s $fail ]; then
    1.17 +		if [ "$repo_ver" != '-' ]; then
    1.18  			if echo " $repo_ver " | fgrep -q " $VERSION "; then
    1.19 -				add 'win'
    1.20 +				[ -s $fail ] || add 'win'
    1.21  			else
    1.22  				add 'old'
    1.23  			fi