diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2019-08-14 07:21:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 07:21:59 +0100 |
commit | 4f835fb2de4145a9433007f6521ba2fdc1a38013 (patch) | |
tree | 87eabef95169bea8629aab4fdf5177c5be990f41 | |
parent | 8fa1bb84e869d17a8dbb9bb5b24ea49843a57faf (diff) | |
parent | 92cc949f9f9193ff49b4d5dcbd80eee39b6cd42d (diff) |
Merge pull request #66538 from singron/config-whitespace
kernel generate-config.pl: Allow whitespace in values
-rw-r--r-- | pkgs/os-specific/linux/kernel/generate-config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generate-config.pl b/pkgs/os-specific/linux/kernel/generate-config.pl index f886fcfdc358..26fc07202bb1 100644 --- a/pkgs/os-specific/linux/kernel/generate-config.pl +++ b/pkgs/os-specific/linux/kernel/generate-config.pl @@ -28,7 +28,7 @@ open ANSWERS, "<$ENV{KERNEL_CONFIG}" or die "Could not open answer file"; while (<ANSWERS>) { chomp; s/#.*//; - if (/^\s*([A-Za-z0-9_]+)(\?)?\s+(\S+)\s*$/) { + if (/^\s*([A-Za-z0-9_]+)(\?)?\s+(.*\S)\s*$/) { $answers{$1} = $3; $requiredAnswers{$1} = !(defined $2); } elsif (!/^\s*$/) { |