From 6e868b6382cabbacffb1d12dc91f7eb9a8362ce2 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 28 Dec 2019 22:39:52 +1000 Subject: Tweak the dumpTable() arguments a little. --- apt-panopticon.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index a97a974..c39a9b9 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -624,7 +624,7 @@ local getMirrors = function () end local file, e = io.open("results/mirrors.lua", "w+") if nil == file then C("opening mirrors file - " .. e) else - file:write(APT.dumpTable(mirrors, "", "mirrors") .. "\nreturn mirrors\n") + file:write(APT.dumpTable(mirrors, "mirrors") .. "\nreturn mirrors\n") file:close() end return mirrors @@ -1045,7 +1045,7 @@ if 0 < #arg then if "" ~= ip then f = f .. "_" .. ip end local rfile, e = io.open("results/" .. f .. ".lua", "w+") if nil == rfile then C("opening results file - " .. e) else - rfile:write(APT.dumpTable(APT.results, "", "results") .. "\nreturn results\n") + rfile:write(APT.dumpTable(APT.results, "results") .. "\nreturn results\n") rfile:close() end @@ -1190,7 +1190,7 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. end local file, e = io.open("results/debians.lua", "w+") if nil == file then C("opening debians file - " .. e) else - file:write(APT.dumpTable(debians, "", "debians") .. "\nreturn debians\n") + file:write(APT.dumpTable(debians, "debians") .. "\nreturn debians\n") file:close() end @@ -1204,7 +1204,7 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. end local file, e = io.open("results/mirrors.lua", "w+") if nil == file then C("opening mirrors file - " .. e) else - file:write(APT.dumpTable(APT.mirrors, "", "mirrors") .. "\nreturn mirrors\n") + file:write(APT.dumpTable(APT.mirrors, "mirrors") .. "\nreturn mirrors\n") file:close() end -- cgit v1.1