[elbe-devel] [PATCH 09/21] elbepack: pbuilder: call rm_log() directly

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 6 11:18:07 CEST 2024


Instead of going through "elbe control", call the rm_log() 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/pbuilder.py b/elbepack/commands/pbuilder.py
index 4299b7cba26e..7976be95b401 100644
--- a/elbepack/commands/pbuilder.py
+++ b/elbepack/commands/pbuilder.py
@@ -112,7 +112,7 @@ def _build(control, args):
         print('')
     elif args.project:
         prjdir = args.project
-        run_elbe(['control', 'rm_log', prjdir], check=True)
+        control.service.rm_log(prjdir)
     else:
         args.parser.error('you need to specify --project or --xmlfile option')
 

-- 
2.46.0



More information about the elbe-devel mailing list