Skip to content

Commit

Permalink
Rename "bugtracker" field to "bugs" (fixes latex3#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Jul 30, 2024
1 parent d888be0 commit fa25306
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed
- Global `typesetopts` no longer ignored for `luatex` and `lualatex` (issue \#351)
- Handling of spaces in options
- Rename deprecated `bugtracker` field in CTAN API to `bugs` (issue \#380)

## [2024-05-27]

Expand Down
2 changes: 1 addition & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ uploadconfig = {
topic = {"macro-supp", "package-devel"},
ctanPath = "/macros/latex/contrib/l3build",
repository = "https://github.com/latex3/l3build/",
bugtracker = "https://github.com/latex3/l3build/issues",
bugs = "https://github.com/latex3/l3build/issues",
update = true,
description = [[
The build system supports testing and building (La)TeX code, on
Expand Down
9 changes: 8 additions & 1 deletion l3build-upload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ end

function construct_ctan_post(uploadfile,debug)

-- handle renamed fields
-- - latest (version 1.1): https://ctan.org/help/submit
-- - deprecated: https://ctan.org/help/submit/1.0
if uploadconfig.bugs == nil then
uploadconfig.bugs = uploadconfig.bugtracker
end

-- start building the curl command:
-- commandline ctan_post = curlexe .. " "
ctan_post=""
Expand All @@ -266,7 +273,7 @@ function construct_ctan_post(uploadfile,debug)
-- ----------------------------------------------------------------------------------------------------
ctan_field("announcement", uploadconfig.announcement, 8192, "Announcement", true, false )
ctan_field("author", uploadconfig.author, 128, "Author name", true, false )
ctan_field("bugtracker", uploadconfig.bugtracker, 255, "URL(s) of bug tracker", false, true )
ctan_field("bugs", uploadconfig.bugs, 255, "URL(s) of bug tracker", false, true )
ctan_field("ctanPath", uploadconfig.ctanPath, 255, "CTAN path", true, false )
ctan_field("description", uploadconfig.description, 4096, "Short description of package", false, false )
ctan_field("development", uploadconfig.development, 255, "URL(s) of development channels", false, true )
Expand Down
3 changes: 2 additions & 1 deletion l3build.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,8 @@
% \texttt{uploader } & \YES & & Name of uploader \\
% \texttt{version } & \YES & & Package version \\
% \midrule
% \texttt{bugtracker } & & \YES & URL(s) of bug tracker \\
% \texttt{bugs}\footnote{If not set, the deprecated \texttt{bugtracker} field is used}
% & & \YES & URL(s) of bug tracker \\
% \texttt{description } & & & Short description/abstract \\
% \texttt{development } & & \YES & URL(s) of development channels \\
% \texttt{home } & & \YES & URL(s) of home page \\
Expand Down

0 comments on commit fa25306

Please sign in to comment.