Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/asu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2022-09-10 23:09:01 +0300
committerPaul Spooren <mail@aparcar.org>2022-09-10 23:09:01 +0300
commit05e8ec222a42c7e54ff2edfa34e198f6fa48d893 (patch)
tree68f8571d85a43ee8ffa9f2df3b0f66116447d481
parentd53aba797b9b233a8c3ea484559b3a72858b4a43 (diff)
build: save manifest stdout/stderr every time
This may help to debug corner cases where the manifest acks up. Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--asu/build.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/asu/build.py b/asu/build.py
index 2b752df..96c4468 100644
--- a/asu/build.py
+++ b/asu/build.py
@@ -232,13 +232,15 @@ def build(req: dict):
capture_output=True,
)
+ job.meta["stdout"] = manifest_run.stdout
+ job.meta["stderr"] = manifest_run.stderr
+ job.save_meta()
+
if manifest_run.returncode:
if "Package size mismatch" in manifest_run.stderr:
rmtree(cache_workdir)
return build(req)
else:
- job.meta["stdout"] = manifest_run.stdout
- job.meta["stderr"] = manifest_run.stderr
print(manifest_run.stdout)
print(manifest_run.stderr)
report_error("Impossible package selection")