misc: writevars: fix code formatting
This commit is contained in:
parent
f29acc639b
commit
68a8a3b402
@ -120,7 +120,7 @@ end
|
|||||||
-- @@FOO@@ with the rpm evaluation of %{foo} and
|
-- @@FOO@@ with the rpm evaluation of %{foo} and
|
||||||
-- @@BAR@@ with the rpm evaluation of %{bar}
|
-- @@BAR@@ with the rpm evaluation of %{bar}
|
||||||
-- in myfile
|
-- in myfile
|
||||||
local function writevars(macrofile,rpmvars)
|
local function writevars(macrofile, rpmvars)
|
||||||
for _, rpmvar in ipairs(rpmvars) do
|
for _, rpmvar in ipairs(rpmvars) do
|
||||||
print("sed -i 's\029" .. string.upper("@@" .. rpmvar .. "@@") ..
|
print("sed -i 's\029" .. string.upper("@@" .. rpmvar .. "@@") ..
|
||||||
"\029" .. rpm.expand( "%{" .. rpmvar .. "}" ) ..
|
"\029" .. rpm.expand( "%{" .. rpmvar .. "}" ) ..
|
||||||
|
Loading…
Reference in New Issue
Block a user