[elbe-devel] [PATCH 11/21] elbepack: pbuilder: call set_xml() directly
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 6 11:18:09 CEST 2024
Instead of going through "elbe control", call the wait_busy() method
directly. This reuses existing connections and improves the error
reporting.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/commands/pbuilder.py | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/elbepack/commands/pbuilder.py b/elbepack/commands/pbuilder.py
index 7976be95b401..59864ee8484d 100644
--- a/elbepack/commands/pbuilder.py
+++ b/elbepack/commands/pbuilder.py
@@ -37,14 +37,7 @@ def _create(control, args):
soapport=args.soapport) as preproc:
prjdir = control.service.new_project()
- ps = run_elbe(['control', 'set_xml', prjdir, preproc],
- capture_output=True, encoding='utf-8')
-
- if ps.returncode != 0:
- print('elbe control set_xml failed.', file=sys.stderr)
- print(ps.stderr, file=sys.stderr)
- print('Giving up', file=sys.stderr)
- sys.exit(153)
+ control.set_xml(prjdir, preproc)
if args.writeproject:
wpf = open(args.writeproject, 'w')
--
2.46.0
More information about the elbe-devel
mailing list