diff options
author | dvs1 | 2024-11-15 14:08:55 +1000 |
---|---|---|
committer | dvs1 | 2024-11-15 14:08:55 +1000 |
commit | 46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5 (patch) | |
tree | a84e57a8b902f305e2daefc09a9fd8ba7ee81aa7 | |
parent | Warnings about duplicated results, but I repeat myself. (diff) | |
download | apt-panopticon-46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5.zip apt-panopticon-46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5.tar.gz apt-panopticon-46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5.tar.bz2 apt-panopticon-46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5.tar.xz |
Sometimes even I screw up, check for one I did that might happen again.
-rwxr-xr-x | apt-panopticon.lua | 4 |
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 | ||
631 | local validateURL = function(m) | 631 | local 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) |