summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-05-28 20:38:32 +0200
committerChristian Poessinger <christian@poessinger.com>2019-05-28 20:38:32 +0200
commite91ac330b78025f523a60161e9fde43dafae4b7e (patch)
tree1bb1caec687317bda1e9a5952420b7b19c7b5f15 /scripts
parent8cec5a37947accd0dbcc3ab58e6557c3ec347377 (diff)
downloadvyos-build-e91ac330b78025f523a60161e9fde43dafae4b7e.tar.gz
vyos-build-e91ac330b78025f523a60161e9fde43dafae4b7e.zip
Packages: clean, fetch and keep options are mutually exclusive
... as it makes no sense to keep and clean a package or any other combination.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-packages b/scripts/build-packages
index aa73228a..69cef3c0 100755
--- a/scripts/build-packages
+++ b/scripts/build-packages
@@ -285,13 +285,13 @@ pkg_build = []
if __name__ == '__main__':
parser = argparse.ArgumentParser()
exclusive = parser.add_mutually_exclusive_group(required=False)
+ exclusive.add_argument('-c', '--clean', action='store_true', help='Re-clone required Git repositories')
exclusive.add_argument('-k', '--keep', action='store_true', help='Keep modified Git repositories')
+ exclusive.add_argument('-f', '--fetch', action='store_true', help='Fetch sources only, no build')
parser.add_argument('-v', '--verbose', action='count', default=0, help='Increase logging verbosity for each occurance')
- parser.add_argument('-c', '--clean', action='store_true', help='Re-clone required Git repositories')
parser.add_argument('-l', '--list-packages', action='store_true', help='List all packages to build')
parser.add_argument('-b', '--build', nargs='+', help='Whitespace separated list of packages to build')
- parser.add_argument('-f', '--fetch', action='store_true', help='Fetch sources only, no build')
parser.add_argument('-p', '--parallel', action='store_true', help='Build on all CPUs')
parser.add_argument('--blacklist', nargs='+', help='Do not build/report packages when calling --list')