From 14881493390cb2b41ea2b04c4be478dfd373f2d3 Mon Sep 17 00:00:00 2001
From: onefang
Date: Wed, 25 Dec 2019 23:11:53 +1000
Subject: Don't log some APT.execute() calls.
---
apt-panopticommon.lua | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'apt-panopticommon.lua')
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)
return false
end
-APT.execute = function (s)
- D(" executing - " .. s .. "")
+APT.execute = function (s, logit)
+ if nil == logit then logit = true end
+ if logit then D(" executing - " .. s .. "") end
--[[ Damn os.execute()
Lua 5.1 says it returns "a status code, which is system-dependent"
Lua 5.2 says it returns true/nil, "exit"/"signal", the status code.
--
cgit v1.1