aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2019-12-25 23:11:53 +1000
committeronefang2019-12-25 23:11:53 +1000
commit14881493390cb2b41ea2b04c4be478dfd373f2d3 (patch)
tree5078fb33bc5d8cbb212a0237b38dfd86a2b0692c /apt-panopticommon.lua
parentTODO++ (diff)
downloadapt-panopticon-14881493390cb2b41ea2b04c4be478dfd373f2d3.zip
apt-panopticon-14881493390cb2b41ea2b04c4be478dfd373f2d3.tar.gz
apt-panopticon-14881493390cb2b41ea2b04c4be478dfd373f2d3.tar.bz2
apt-panopticon-14881493390cb2b41ea2b04c4be478dfd373f2d3.tar.xz
Don't log some APT.execute() calls.
Diffstat (limited to 'apt-panopticommon.lua')
-rw-r--r--apt-panopticommon.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 55f0e40..1405622 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -425,8 +425,9 @@ APT.testing = function(t, host)
425 return false 425 return false
426end 426end
427 427
428APT.execute = function (s) 428APT.execute = function (s, logit)
429 D(" executing - &nbsp; <code>" .. s .. "</code>") 429 if nil == logit then logit = true end
430 if logit then D(" executing - &nbsp; <code>" .. s .. "</code>") end
430 --[[ Damn os.execute() 431 --[[ Damn os.execute()
431 Lua 5.1 says it returns "a status code, which is system-dependent" 432 Lua 5.1 says it returns "a status code, which is system-dependent"
432 Lua 5.2 says it returns true/nil, "exit"/"signal", the status code. 433 Lua 5.2 says it returns true/nil, "exit"/"signal", the status code.