kmod.attr: fix "%g+.ko" pattern (erroneously matches "anythingko") to "%g+%.ko"

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2023-05-04 12:37:36 +02:00
parent 9d75b962fc
commit 491a3411df

View File

@ -20,7 +20,7 @@
end
end
else
local mod = string.match(bn, "%g+.ko")
local mod = string.match(bn, "%g+%.ko")
if mod then
printdep(mod)
if strip_compress_sfx(mod) ~= mod then