[elbe-devel] [PATCH v2 1/5] elbepack: pbuilderaction: move argument specific for "control get_files"
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 15 17:31:26 CEST 2024
Currently the order of arguments and subcommands does not matter.
With the move to argparse that will change.
As the argument "--pbuilder-only" is only used by the "get_files"
subcommand, move it after that subcommand.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/pbuilderaction.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
index 32f6a38f4e34..5aa66d470494 100644
--- a/elbepack/pbuilderaction.py
+++ b/elbepack/pbuilderaction.py
@@ -252,7 +252,7 @@ class BuildAction(PBuilderAction):
print('Listing available files:')
print('')
try:
- run_elbe(['control', '--pbuilder-only', 'get_files', prjdir], check=True)
+ run_elbe(['control', 'get_files', '--pbuilder-only', prjdir], check=True)
except subprocess.CalledProcessError:
print('elbe control get_files Failed', file=sys.stderr)
print('', file=sys.stderr)
@@ -277,7 +277,7 @@ class BuildAction(PBuilderAction):
ensure_outdir(opt)
try:
- run_elbe(['control', '--pbuilder-only', 'get_files',
+ run_elbe(['control', 'get_files', '--pbuilder-only',
'--output', opt.outdir, prjdir], check=True)
except subprocess.CalledProcessError:
print('elbe control get_files Failed', file=sys.stderr)
--
2.45.2
More information about the elbe-devel
mailing list