Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename "bugtracker" field to "bugs" #381

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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