scripts/obs/*.py: add option to ignore required programs check

Not all the required programs are actually required to build subset of packages.
Add option to ignore the default check.

Change-Id: I8b5eaedab87b586fb1ca4c22746be4dfbb3c2176
This commit is contained in:
Max 2022-09-21 11:39:18 +07:00 committed by msuraev
parent f067b7a4d9
commit f2efe48110
3 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,9 @@ def main():
if args.docker:
lib.docker.run_in_docker_and_exit(__file__, args)
lib.check_required_programs()
if not args.ignore_req:
lib.check_required_programs()
if args.package:
lib.check_package(args.package)
lib.remove_temp()

View File

@ -33,6 +33,8 @@ def add_shared_arguments(parser):
action="store_false", dest="git_fetch")
parser.add_argument("-m", "--meta", action="store_true",
help="build a meta package (e.g. osmocom-nightly)")
parser.add_argument("-i", "--ignore-req", action="store_true",
help="skip required programs check")
parser.add_argument("-c", "--conflict-version", nargs="?",
help="Of the generated source packages, all Osmocom"
" packages (not e.g. open5gs, see lib/config.py"

View File

@ -202,7 +202,10 @@ def main():
lib.osc.check_proj(proj)
lib.osc.check_oscrc()
lib.osc.set_apiurl(args.apiurl)
lib.check_required_programs()
if not args.ignore_req:
lib.check_required_programs()
lib.remove_temp()
pkgs_remote = lib.osc.get_remote_pkgs(proj)