cookutils rev 497

cook: Using PKGS_CATEGORIES variable.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Jun 19 18:05:06 2012 +0000 (2012-06-19)
parents 07e4c743f1d7
children 58ba62efde6a
files cook
line diff
     1.1 --- a/cook	Tue Jun 19 16:33:46 2012 +0000
     1.2 +++ b/cook	Tue Jun 19 18:05:06 2012 +0000
     1.3 @@ -96,9 +96,7 @@
     1.4  				if_empty_value ;;
     1.5  			CATEGORY)
     1.6  				[ -z "$value" ] && value="empty"
     1.7 -				valid="base-system x-window utilities network graphics \
     1.8 -					multimedia office development system-tools security games \
     1.9 -					misc meta non-free"
    1.10 +				valid="$PKGS_CATEGORIES"
    1.11  				if ! echo "$valid" | grep -q -w "$value"; then
    1.12  					gettext "QA: unknown category:"; echo -e " $value\n"
    1.13  					exit 1