aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-09-06 15:57:41 +1000
committeronefang2019-09-06 15:57:41 +1000
commit6fa7b1a2e2fd994cc90b15971f3c5a448107f125 (patch)
treefe301a87da1f4928a4ea6db42fcd994936e476e1
parentTODO++ (diff)
downloadapt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.zip
apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.gz
apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.bz2
apt-panopticon-6fa7b1a2e2fd994cc90b15971f3c5a448107f125.tar.xz
Add a no fork option, though it's not actually implemented yet.
-rwxr-xr-xmirror-checker.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index 069a038..b04d474 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -6,6 +6,8 @@ local args = {...}
6 6
7verbosity = 0 7verbosity = 0
8keep = false 8keep = false
9-- TODO - Should actually implement this.
10fork = true
9options = 11options =
10{ 12{
11 referenceSite = 13 referenceSite =
@@ -371,6 +373,8 @@ if 0 ~= #args then
371 sendArgs = sendArgs .. a .. " " 373 sendArgs = sendArgs .. a .. " "
372 elseif "-k" == a then 374 elseif "-k" == a then
373 keep = true 375 keep = true
376 elseif "-n" == a then
377 fork = false
374 elseif "--" == a:sub(1, 2) then 378 elseif "--" == a:sub(1, 2) then
375 local s, e = a:find("=") 379 local s, e = a:find("=")
376 if nil == s then e = -1 end 380 if nil == s then e = -1 end