aboutsummaryrefslogtreecommitdiffstats
path: root/gendistrib
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 /gendistrib
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.
Diffstat (limited to 'gendistrib')
-rwxr-xr-xgendistrib2
1 files changed, 1 insertions, 1 deletions
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 {