aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2019-12-24 15:08:02 +1000
committeronefang2019-12-24 15:08:02 +1000
commitc742660a5d5245e4bae7fa6cb7b022590aad1658 (patch)
tree4ad75b5194968944f6d2dca516b0546ef63ae56d /apt-panopticommon.lua
parentMinor tweaks to the redirection log messages. (diff)
downloadapt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.zip
apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.gz
apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.bz2
apt-panopticon-c742660a5d5245e4bae7fa6cb7b022590aad1658.tar.xz
Better handling of redirects to different hosts.
Diffstat (limited to 'apt-panopticommon.lua')
-rw-r--r--apt-panopticommon.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index eab901e..accfcd5 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -21,6 +21,7 @@ APT.notExist =
21 21
22APT.verbosity = -1 22APT.verbosity = -1
23APT.origin = false 23APT.origin = false
24APT.redir = false
24APT.keep = false 25APT.keep = false
25 26
26APT.options = 27APT.options =
@@ -122,6 +123,9 @@ APT.parseArgs = function(args)
122 elseif "-o" == a then 123 elseif "-o" == a then
123 APT.origin = true 124 APT.origin = true
124 -- Not adding to sendArgs. 125 -- Not adding to sendArgs.
126 elseif "-r" == a then
127 APT.redir = true
128 sendArgs = sendArgs .. a .. " "
125 elseif "--" == a:sub(1, 2) then 129 elseif "--" == a:sub(1, 2) then
126 local s, e = a:find("=") 130 local s, e = a:find("=")
127 if nil == s then e = -1 end 131 if nil == s then e = -1 end