aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 092bad5..8e758c6 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -629,6 +629,10 @@ end
629 629
630 630
631local validateURL = function(m) 631local validateURL = function(m)
632 if "http://" == m.BaseURL:sub(1, 7) then
633 W("HTTP at beginning of BaseURL in mirror_list.txt! " .. m.BaseURL, "", "", m.FQDN)
634 m.BaseURL = m.BaseURL:sub(1, -2)
635 end
632 if " " == m.BaseURL:sub(-1, -1) then 636 if " " == m.BaseURL:sub(-1, -1) then
633 W("space at end of BaseURL in mirror_list.txt! " .. m.BaseURL, "", "", m.FQDN) 637 W("space at end of BaseURL in mirror_list.txt! " .. m.BaseURL, "", "", m.FQDN)
634 m.BaseURL = m.BaseURL:sub(1, -2) 638 m.BaseURL = m.BaseURL:sub(1, -2)