[latex3-commits] [git/LaTeX3-latex3-l3build] curl-file: keep URL on commandline so can use validate or submit (33168c9)

David Carlisle d.p.carlisle at gmail.com
Wed Feb 6 23:26:44 CET 2019


Repository : https://github.com/latex3/l3build
On branch  : curl-file
Link       : https://github.com/latex3/l3build/commit/33168c981680e575814f907fa7b1f72251ac5106

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

commit 33168c981680e575814f907fa7b1f72251ac5106
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Wed Feb 6 22:26:44 2019 +0000

    keep URL on commandline so can use validate or submit


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

33168c981680e575814f907fa7b1f72251ac5106
 l3build-upload.lua |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/l3build-upload.lua b/l3build-upload.lua
index 8e1fff5..3e42542 100644
--- a/l3build-upload.lua
+++ b/l3build-upload.lua
@@ -119,6 +119,13 @@ function upload(tagnames)
 
   ctan_post = construct_ctan_post(uploadfile,options["debug"])
 
+
+  if debug then
+    ctan_post = ctan_post ..  ' https://httpbin.org/post'
+  else
+    ctan_post = ctan_post ..  ' https://ctan.org/submit/'
+  end
+
 -- curl file version
   local curlopt=open(ctanzip .. ".curlopt","w")
   output(curlopt)
@@ -240,13 +247,6 @@ function construct_ctan_post(uploadfile,debug)
   end
 -- commandline   ctan_post = ctan_post .. ' --form ' .. qq .. 'file=@' .. tostring(uploadfile) .. ';filename=' .. tostring(uploadfile) .. qq
   ctan_post = ctan_post .. '\nform="file=@' .. tostring(uploadfile) . ';filename=' .. tostring(uploadfile) .. '"'
-  if debug then
--- commandline    ctan_post = ctan_post ..  ' https://httpbin.org/post'
-    ctan_post = ctan_post ..  '\nurl=https://httpbin.org/post'
-  else
--- commandline    ctan_post = ctan_post ..  ' https://ctan.org/submit/'
-    ctan_post = ctan_post ..  '\nurl=https://ctan.org/submit/'
-  end
 
   return ctan_post
 





More information about the latex3-commits mailing list