[packages/rpm-pld-macros] rpm consumes backslash
arekm
arekm at pld-linux.org
Tue May 5 18:36:25 CEST 2026
commit 13312f3d49dfe475b009f9db725eb5ba33aca8db
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue May 5 18:35:41 2026 +0200
rpm consumes backslash
macros.pld | 8 ++++----
rpm-pld-macros.spec | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index d7ad16c..b92f378 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,4 +1,4 @@
-%define rpm_macros_rev 2.064
+%define rpm_macros_rev 2.065
%define find_lang_rev 1.42
# split into individual X_prov_ver if there is a reason to desync
%define prov_ver 4.15
diff --git a/macros.pld b/macros.pld
index e789891..38ee403 100644
--- a/macros.pld
+++ b/macros.pld
@@ -1184,15 +1184,15 @@ local result = {}
for token in args:gmatch("%S+") do
token = token:gsub("'", "")
if token ~= "" and not token:match("^#") then
- local prefix, content = token:match("^([%w._-]+)%((.*)%)$")
+ local prefix, content = token:match("^([%w._-]+)[(](.*)[)]$")
if prefix then
if content:match("|") then
- token = prefix .. "\\((" .. content .. ")\\)"
+ token = prefix .. "\\\\((" .. content .. ")\\\\)"
else
- token = prefix .. "\\(" .. content .. "\\)"
+ token = prefix .. "\\\\(" .. content .. "\\\\)"
end
elseif not token:match("|") then
- token = token:gsub("\\?%(", "\\("):gsub("\\?%)", "\\)")
+ token = token:gsub("\\\\?[(]", "\\\\("):gsub("\\\\?[)]", "\\\\)")
end
table.insert(result, token)
end
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/13312f3d49dfe475b009f9db725eb5ba33aca8db
More information about the pld-cvs-commit
mailing list