kmod.attr: cosmetic fixes: %{1} to %1, indentation fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2023-05-04 12:55:15 +02:00
parent e9cc0440fd
commit 0c336570df

View File

@ -30,7 +30,7 @@
function printdep(mod) function printdep(mod)
print("kmod("..mod..") ") print("kmod("..mod..") ")
end end
local fn = rpm.expand("%{1}") local fn = rpm.expand("%1")
local bn = basename(fn) local bn = basename(fn)
if bn == "modules.builtin" then if bn == "modules.builtin" then
for l in io.lines(fn) do for l in io.lines(fn) do