diff options
author | onefang | 2019-12-25 23:11:53 +1000 |
---|---|---|
committer | onefang | 2019-12-25 23:11:53 +1000 |
commit | 14881493390cb2b41ea2b04c4be478dfd373f2d3 (patch) | |
tree | 5078fb33bc5d8cbb212a0237b38dfd86a2b0692c /apt-panopticommon.lua | |
parent | TODO++ (diff) | |
download | apt-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.lua | 5 |
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 |
426 | end | 426 | end |
427 | 427 | ||
428 | APT.execute = function (s) | 428 | APT.execute = function (s, logit) |
429 | D(" executing - <code>" .. s .. "</code>") | 429 | if nil == logit then logit = true end |
430 | if logit then D(" executing - <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. |