From 0c336570df1bf6639036fcdbaa125c9287ef1f9a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 4 May 2023 12:55:15 +0200 Subject: [PATCH] kmod.attr: cosmetic fixes: %{1} to %1, indentation fix Signed-off-by: Denys Vlasenko --- kmod.attr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kmod.attr b/kmod.attr index b009d5a..8c57d0b 100644 --- a/kmod.attr +++ b/kmod.attr @@ -30,7 +30,7 @@ function printdep(mod) print("kmod("..mod..") ") end - local fn = rpm.expand("%{1}") + local fn = rpm.expand("%1") local bn = basename(fn) if bn == "modules.builtin" then for l in io.lines(fn) do @@ -44,11 +44,11 @@ else local mod = string.match(bn, "%g+%.ko") if mod then - printdep(mod) - local nocompr = strip_compress_sfx(mod) - if nocompr ~= mod then - printdep(nocompr) - end + printdep(mod) + local nocompr = strip_compress_sfx(mod) + if nocompr ~= mod then + printdep(nocompr) + end end end }