aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
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.