forked from mirrors/nixpkgs
linux: properly parse config choice when it's new
This commit is contained in:
parent
2208c360ac
commit
97056a0620
|
@ -54,8 +54,8 @@ sub runConfig {
|
|||
if ($s eq "\n") {
|
||||
print STDERR "GOT: $line" if $debug;
|
||||
|
||||
# Remember choice alternatives ("> 1. bla (FOO)" or " 2. bla (BAR)").
|
||||
if ($line =~ /^\s*>?\s*(\d+)\.\s+.*\(([A-Za-z0-9_]+)\)$/) {
|
||||
# Remember choice alternatives ("> 1. bla (FOO)" or " 2. bla (BAR) (NEW)").
|
||||
if ($line =~ /^\s*>?\s*(\d+)\.\s+.*?\(([A-Za-z0-9_]+)\)(?:\s+\(NEW\))?\s*$/) {
|
||||
$choices{$2} = $1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue