diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-09-03 00:18:04 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-09-03 00:18:04 +0200 |
commit | b6d64af77e176c13c9a04022ef575696dfe7dc20 (patch) | |
tree | 0f8b25dafb86ee511cfb39b44b4c116f6901f228 | |
parent | b08146ee30790cff6efff93c7bb8e05bd8bc3339 (diff) | |
download | rpmtools-b6d64af77e176c13c9a04022ef575696dfe7dc20.tar rpmtools-b6d64af77e176c13c9a04022ef575696dfe7dc20.tar.gz rpmtools-b6d64af77e176c13c9a04022ef575696dfe7dc20.tar.bz2 rpmtools-b6d64af77e176c13c9a04022ef575696dfe7dc20.tar.xz rpmtools-b6d64af77e176c13c9a04022ef575696dfe7dc20.zip |
fix regexp for newer perl
The error was:
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/%{ <-- HERE ARCH}/ at /usr/bin/gendistrib line 126.
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | gendistrib | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ - do not load file sizes from synthesis in non incremental mode (minor performance optimisation) +- fix "Unescaped left brace in regex is illegal here in regex" Version 7.00 - 7 September 2014, by Thierry Vignaud @@ -123,7 +123,7 @@ foreach my $d ($infodir, map { "$_->{path}/media_info" } @hdlists) { } foreach my $e (@hdlists) { - if ($e->{dir} =~ /%{ARCH}/) { + if ($e->{dir} =~ /%\{ARCH\}/) { die "sorry, %{ARCH} not supported anymore\n"; } @{$e->{files}} = glob("$root/$e->{dir}/*.rpm") or do { |