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(
|
return content:gsub(
|
||||||
pattern,
|
pattern,
|
||||||
function(package_name, old_date, old_version, description)
|
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(
|
return string.format(
|
||||||
"\\ProvidesPackage{%s}[%s v%s %s]",
|
"\\ProvidesPackage{%s}[%s v%s %s]",
|
||||||
package_name,
|
package_name,
|
||||||
tagdate,
|
tagdate,
|
||||||
old_version,
|
tagname,
|
||||||
description
|
description
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue