kmod.attr: cosmetic fixes: %{1} to %1, indentation fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
e9cc0440fd
commit
0c336570df
12
kmod.attr
12
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user