aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-09-03 00:18:04 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-09-03 00:18:04 +0200
commitb6d64af77e176c13c9a04022ef575696dfe7dc20 (patch)
tree0f8b25dafb86ee511cfb39b44b4c116f6901f228
parentb08146ee30790cff6efff93c7bb8e05bd8bc3339 (diff)
downloadrpmtools-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--NEWS1
-rwxr-xr-xgendistrib2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9399900..bf2da6f 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/gendistrib b/gendistrib
index 1f0e0ea..6a2094c 100755
--- a/gendistrib
+++ b/gendistrib
@@ -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 {