diff options
Diffstat (limited to 'apt-panopticommon.lua')
| -rw-r--r-- | apt-panopticommon.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index 982ff21..22d294a 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua | |||
| @@ -8,13 +8,14 @@ APT.version = '0.3 alpha' | |||
| 8 | APT.protocols = {"ftp", "http", "https", "rsync"} | 8 | APT.protocols = {"ftp", "http", "https", "rsync"} |
| 9 | APT.tests = {'raw', 'Integrity', 'Protocol', 'Redirects', 'Updated', 'URLSanity', 'Speed'} | 9 | APT.tests = {'raw', 'Integrity', 'Protocol', 'Redirects', 'Updated', 'URLSanity', 'Speed'} |
| 10 | --APT.releases = {"jessie", "ascii", "beowulf", "chimaera", "daedalus", "ceres"} | 10 | --APT.releases = {"jessie", "ascii", "beowulf", "chimaera", "daedalus", "ceres"} |
| 11 | APT.releases = {"beowulf","chimaera", "daedalus", "excalibur", "ceres"} | 11 | APT.releases = {"chimaera", "daedalus", "excalibur", "freia", "ceres"} |
| 12 | APT.subRels = {'backports', 'proposed-updates', 'security', 'updates'} | 12 | APT.subRels = {'backports', 'proposed-updates', 'security', 'updates'} |
| 13 | APT.notExist = | 13 | APT.notExist = |
| 14 | { | 14 | { |
| 15 | 'excalibur-backports', | 15 | 'chimaera-backports', |
| 16 | 'excalibur-security', | 16 | 'freia-backports', |
| 17 | 'excalibur-updates', | 17 | 'freia-security', |
| 18 | 'freia-updates', | ||
| 18 | 'ceres-backports', -- These will never exist, it's our code name for the testing suite. | 19 | 'ceres-backports', -- These will never exist, it's our code name for the testing suite. |
| 19 | 'ceres-proposed-updates', | 20 | 'ceres-proposed-updates', |
| 20 | 'ceres-updates', | 21 | 'ceres-updates', |
| @@ -84,13 +85,13 @@ APT.options = | |||
| 84 | { | 85 | { |
| 85 | typ = "number", | 86 | typ = "number", |
| 86 | help = "", | 87 | help = "", |
| 87 | value = 240, | 88 | value = 180, |
| 88 | }, | 89 | }, |
| 89 | timeout = | 90 | timeout = |
| 90 | { | 91 | { |
| 91 | typ = "number", | 92 | typ = "number", |
| 92 | help = "", | 93 | help = "", |
| 93 | value = 24, | 94 | value = 42, |
| 94 | }, | 95 | }, |
| 95 | timeouts = | 96 | timeouts = |
| 96 | { | 97 | { |
| @@ -550,9 +551,9 @@ APT.exe = function(c) | |||
| 550 | -- timeout returns a status of - command status if --preserve-status; "128+9" (actually 137) if --kill-after ends up being done; 124 if it had to TERM; command status if all went well. | 551 | -- timeout returns a status of - command status if --preserve-status; "128+9" (actually 137) if --kill-after ends up being done; 124 if it had to TERM; command status if all went well. |
| 551 | -- --kill-after means "send KILL after TERM fails. | 552 | -- --kill-after means "send KILL after TERM fails. |
| 552 | if nil == c then | 553 | if nil == c then |
| 553 | self.cmd = 'timeout --kill-after=10.0 --foreground 42.0s ' .. self.cmd | 554 | self.cmd = 'timeout --kill-after=10.0s --foreground 42.0s ' .. self.cmd |
| 554 | else | 555 | else |
| 555 | self.cmd = 'timeout --kill-after=10.0 --foreground ' .. c .. ' ' .. self.cmd | 556 | self.cmd = 'timeout --kill-after=10.0s --foreground ' .. c .. ' ' .. self.cmd |
| 556 | end | 557 | end |
| 557 | return self | 558 | return self |
| 558 | end | 559 | end |
