From 648ec8ee445e7419bf035a95973314ca3606ebab Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 24 Nov 2019 06:38:32 +1000 Subject: No "-" in the middle of test names, it confuses the option parsing. --- apt-panopticon.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 9f4d073..cd1bca0 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -43,7 +43,7 @@ options = -- "rsync", "DNSRR", "Protocol", --- "URL-Sanity", +-- "URLSanity", -- "Integrity", -- "Updated", }, @@ -427,7 +427,7 @@ checkHEAD = function (host, URL, r, retry) --max-redirs n - set maximum redirects, default is 50, -1 = unlimited. --retry n - maximum retries, default is 0, no retries. -o file - write to file instead of stdout. - --path-as-is - https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html might be useful for URL_sanity. + --path-as-is - https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html might be useful for URLSanity. -s silent - don't output progress or error messages. --connect-timeout n - timeout in seconds. Should return with error code 28 on a timeout? @@ -767,10 +767,10 @@ if 0 < #arg then for k, v in pairs{"ftp", "http", "https", "rsync"} do if testing(v) then local tests = {errors = 0; warnings = 0} - if testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end - if testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end - if testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end - if testing("URL-Sanity") then tests.URL_Sanity = {errors = 0; warnings = 0} end + if testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end + if testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end + if testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end + if testing("URLSanity") then tests.URLSanity = {errors = 0; warnings = 0} end results[v] = tests end end -- cgit v1.1