[elbe-devel] [PATCH 10/18] elbepack: initvm: call build() directly
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 13 13:15:40 CEST 2024
Instead of going through "elbe control", call the build()
method directly. This reuses existing connections and improves the error
reporting.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/initvmaction.py | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 8df379cb53aa..a4c44db4ca02 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -120,15 +120,7 @@ def _submit_and_dl_result(control, xmlfile, cdrom, args):
control.set_cdrom(prjdir, cdrom)
print('Upload finished')
- build_opts = []
- if args.build_bin:
- build_opts.append('--build-bin')
- if args.build_sources:
- build_opts.append('--build-sources')
- if cdrom:
- build_opts.append('--skip-pbuilder')
-
- run_elbe(['control', 'build', prjdir, *build_opts], check=True)
+ control.service.build(prjdir, args.build_bin, args.build_sources, bool(cdrom))
print('Build started, waiting till it finishes')
--
2.46.0
More information about the elbe-devel
mailing list