Allow override options being required in kernel configuration.. Otherwise modifying significantly config via extraConfig becomes practically impossible.

svn path=/nixpkgs/trunk/; revision=23171
This commit is contained in:
Michael Raskin 2010-08-14 09:18:57 +00:00
parent dc831feb4b
commit 2d062ba772

View File

@ -26,7 +26,7 @@ while (<ANSWERS>) {
s/#.*//;
if (/^\s*([A-Za-z0-9_]+)(\?)?\s+(\S+)\s*$/) {
$answers{$1} = $3;
$requiredAnswers{$1} = 1 unless defined $2;
$requiredAnswers{$1} = !(defined $2);
} elsif (!/^\s*$/) {
die "invalid config line: $_";
}