aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authordvs12024-11-15 14:08:55 +1000
committerdvs12024-11-15 14:08:55 +1000
commit46a8f0d98e4cf0a1c057fb2aa375bda06ed49cd5 (patch)
treea84e57a8b902f305e2daefc09a9fd8ba7ee81aa7 /apt-panopticon.lua
parentWarnings about duplicated results, but I repeat myself. (diff)
downloadapt-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.
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)