diff --git a/patch-git.lua b/patch-git.lua index 04cb061..c975eb7 100644 --- a/patch-git.lua +++ b/patch-git.lua @@ -1910,7 +1910,7 @@ if rpm then if patches_log ~= '' then local fp = assert(io.open(patches_log, 'w+')) for i=1,#patches do - local pname = assert(string.match(patches[i], '.*/([^/]+)$')) + local pname = assert(string.match(patches[i], '([^/]+)$')) fp:write('Patch' .. i .. ': ' .. pname .. '\n') end assert(fp:close())