[latex3-commits] [git/LaTeX3-latex3-l3build] master: Enable --dry-run option for upload target (b83f103)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Dec 20 14:57:27 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/b83f1033517d67fad39e6cfab9740b74b9073d71
>---------------------------------------------------------------
commit b83f1033517d67fad39e6cfab9740b74b9073d71
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Dec 20 12:31:05 2018 +0000
Enable --dry-run option for upload target
>---------------------------------------------------------------
b83f1033517d67fad39e6cfab9740b74b9073d71
CHANGELOG.md | 4 ++++
l3build-upload.lua | 3 +++
2 files changed, 7 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c46ed41..5f2aaee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ this project uses date-based 'snapshot' version identifiers.
- Switch `-m|--message` for providing upload announcement from command line
+### Changed
+
+- Enable `--dry-run` option for `upload` target
+
### Fixed
- Packaging of some team-specific files
diff --git a/l3build-upload.lua b/l3build-upload.lua
index 7ff0597..1b68d30 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -53,6 +53,9 @@ local curl_debug = curl_debug or false -- to disable posting
-- For now, this is undocumented.
local ctanupload = ctanupload or "ask"
+if options["dry-run"] then
+ ctanupload = false
+end
-- if ctanupload is nil or false, only validation is attempted
-- if ctanupload is true the ctan upload URL will be used after validation
-- if upload is anything else, the user will be prompted whether to upload.
More information about the latex3-commits
mailing list