[elbe-devel] [PATCH v2 2/5] elbepack: pbuilderaction: move generic argument

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Jul 15 17:31:27 CEST 2024


Currently the order of arguments and subcommands does not matter.
With the move to argparse that will change.
As the argument "--retries" is generic to all "elbe control" subcommands,
move it directly after "elbe control".

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/pbuilderaction.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 5aa66d470494..4ea40f0630b8 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -165,7 +165,7 @@ class BuildAction(PBuilderAction):
         tmp = TmpdirFilesystem()
 
         if opt.xmlfile:
-            ps = run_elbe(['control', 'create_project', '--retries', '60', opt.xmlfile],
+            ps = run_elbe(['control', '--retries', '60', 'create_project', opt.xmlfile],
                           capture_output=True, encoding='utf-8')
             if ps.returncode != 0:
                 print('elbe control create_project failed.', file=sys.stderr)

-- 
2.45.2



More information about the elbe-devel mailing list