void-packages/srcpkgs/attr/patches/escape-left-brace-regex.patch

12 lines
321 B
Diff
Raw Normal View History

2018-06-19 07:58:32 +02:00
--- test/run
+++ test/run
@@ -106,7 +106,7 @@ for (;;) {
if (defined $line) {
# Substitute %VAR and %{VAR} with environment variables.
$line =~ s[%(\w+)][$ENV{$1}]eg;
- $line =~ s[%{(\w+)}][$ENV{$1}]eg;
+ $line =~ s[%\{(\w+)}][$ENV{$1}]eg;
}
if (defined $line) {
if ($line =~ s/^\s*< ?//) {