summaryrefslogtreecommitdiff
path: root/lbup/targets.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-16 15:21:13 +0200
committerAnton Khirnov <anton@khirnov.net>2020-10-16 15:21:13 +0200
commitcfe2ffcc23b714804c42109868a964d1b40f1630 (patch)
tree8afa4d0f04566c9c756259b4e4bb300c0c0e1248 /lbup/targets.py
parent63eef7e44e1ecb2ccf4c88237fab8731fddf48b3 (diff)
repository: rewrite results processing
Drop the use of retcode, as it is not very meaningful. Drop all_ok, as it is not very useful. Catch all exceptions from individual targets and wrap them as failed results.
Diffstat (limited to 'lbup/targets.py')
-rw-r--r--lbup/targets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbup/targets.py b/lbup/targets.py
index d3c724a..9801bc4 100644
--- a/lbup/targets.py
+++ b/lbup/targets.py
@@ -110,7 +110,7 @@ class Target(ABC):
retcode = res_save.returncode
output += res_save.stderr + res_save.stdout
- result = repository.StepResult(retcode, output)
+ result = repository.StepResult(retcode == 0, output)
return result