[elbe-devel] [PATCH 14/21] elbepack: pbuilder: call set_orig() directly
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 6 11:18:12 CEST 2024
Instead of going through "elbe control", call the set_orig() 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 | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/elbepack/commands/pbuilder.py b/elbepack/commands/pbuilder.py
index 59864ee8484d..022c34f716a8 100644
--- a/elbepack/commands/pbuilder.py
+++ b/elbepack/commands/pbuilder.py
@@ -124,12 +124,7 @@ def _build(control, args):
print('')
print(f"Pushing orig file '{of}' into pbuilder")
print('')
- try:
- run_elbe(['control', 'set_orig', prjdir, of], check=True)
- except subprocess.CalledProcessError:
- print('elbe control set_orig Failed', file=sys.stderr)
- print('Giving up', file=sys.stderr)
- sys.exit(165)
+ control.set_orig(prjdir, of)
print('')
print('Pushing source into pbuilder')
--
2.46.0
More information about the elbe-devel
mailing list