[latex3-commits] [git/LaTeX3-latex3-l3build] ctan-post: fixup (df33fd9)

Will Robertson wspr81 at gmail.com
Sun Dec 16 12:33:38 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : ctan-post
Link       : https://github.com/latex3/l3build/commit/df33fd99d48fe126e8547388eafe42a418121a39

>---------------------------------------------------------------

commit df33fd99d48fe126e8547388eafe42a418121a39
Author: Will Robertson <wspr81 at gmail.com>
Date:   Sun Dec 16 22:03:38 2018 +1030

    fixup


>---------------------------------------------------------------

df33fd99d48fe126e8547388eafe42a418121a39
 l3build-upload.lua |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/l3build-upload.lua b/l3build-upload.lua
index bf31aba..3ba64b2 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -63,6 +63,11 @@ function upload()
   -- try a sensible default for the package name:
   uploaddata.pkg = uploaddata.pkg or ctanpkg or nil
 
+  -- start building the curl command:
+  ctan_post = curlexe .. " "
+
+  -- build up the curl command field-by-field:
+
   --         field                                   max  desc                                 mandatory  multi
   --         ----------------------------------------------------------------------------------------------------
   ctan_field("announcement", uploaddata.announcement, 8192, "Announcement",                        false, false )
@@ -84,8 +89,7 @@ function upload()
   ctan_field("uploader",     uploaddata.uploader,      255, "Name of uploader",                    true,  false )
   ctan_field("version",      uploaddata.version,        32, "Package version",                     true,  false )
 
-  -- construct the curl command
-  ctan_post = curlexe .. " "
+  -- finish constructing the curl command:
   ctan_post = ctan_post .. " --form 'file=@" .. tostring(uploadfile) .. ";filename=" .. tostring(uploadfile) .. "'"
   ctan_post = ctan_post ..  " https://ctan.org/submit/"
 
@@ -94,7 +98,7 @@ function upload()
   if zip~=nil then
     io.close(zip)
   else
-    error("Missing zip file " .. tostring(uploadfile))
+    error("Missing zip file '" .. tostring(uploadfile) .. "'")
   end
 
   -- call post command to validate the upload at CTAN's validate URL





More information about the latex3-commits mailing list