chore: if tagname is nil, use old_version instead
This commit is contained in:
parent
a8c3c585e2
commit
6f88c49765
|
@ -15,11 +15,16 @@ function update_tag(file, content, tagname, tagdate)
|
|||
return content:gsub(
|
||||
pattern,
|
||||
function(package_name, old_date, old_version, description)
|
||||
-- if tagdate is nil, use old_date
|
||||
if tagname == nil then
|
||||
tagname = old_version
|
||||
end
|
||||
|
||||
return string.format(
|
||||
"\\ProvidesPackage{%s}[%s v%s %s]",
|
||||
package_name,
|
||||
tagdate,
|
||||
old_version,
|
||||
tagname,
|
||||
description
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue