From bdbc48a3728cc9ae2a91474a1cae72b2302ffc2c Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 5 Apr 2023 16:08:06 +0200 Subject: obs: update_obs_project: add ALL_OSMOCOM_PACKAGES Add this alias to use all Osmocom packages, but no the misc packages that would also be selected if not specifying the packages argument at all (limesuite, neocon, open5gs). This will be used for building packages from the rhizomatica branches, so we don't check the git repositories of these misc projects for the git branches. Related: OS#5981 Change-Id: I4265f43408bc21ac8765449d6766381c75cafe86 --- scripts/obs/update_obs_project.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/obs/update_obs_project.py b/scripts/obs/update_obs_project.py index 8c4da5e..599e5cd 100755 --- a/scripts/obs/update_obs_project.py +++ b/scripts/obs/update_obs_project.py @@ -24,7 +24,10 @@ def parse_packages(packages_arg): ret = [] if packages_arg: for package in packages_arg: - ret += [lib.set_proper_package_name(package)] + if package == "ALL_OSMOCOM_PACKAGES": + ret += lib.config.projects_osmocom + else: + ret += [lib.set_proper_package_name(package)] return ret # Default to all @@ -218,8 +221,8 @@ def main(): parser.add_argument("obs_project", help="OBS project, e.g. home:osmith:nightly") parser.add_argument("package", nargs="*", - help="package name, e.g. libosmocore or open5gs," - " default is all packages") + help="package name, e.g. libosmocore or open5gs or" + " ALL_OSMOCOM_PACKAGES, default is all packages") args = parser.parse_args() validate_args(args) lib.set_args(args) -- cgit v1.2.3