From 97056a0620f117d793e1a093ba36ec37456bf5e4 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Mon, 5 Aug 2013 17:59:43 +0000 Subject: [PATCH] linux: properly parse config choice when it's new --- pkgs/os-specific/linux/kernel/generate-config.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/generate-config.pl b/pkgs/os-specific/linux/kernel/generate-config.pl index 05b6867bc553..78663098fb31 100644 --- a/pkgs/os-specific/linux/kernel/generate-config.pl +++ b/pkgs/os-specific/linux/kernel/generate-config.pl @@ -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; }