aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/obs/update_obs_project.py
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-04-05 16:08:06 +0200
committerOliver Smith <osmith@sysmocom.de>2023-04-06 10:59:28 +0200
commitbdbc48a3728cc9ae2a91474a1cae72b2302ffc2c (patch)
tree2f055b955e00f603b580810f4d216e059916c6c5 /scripts/obs/update_obs_project.py
parentccb0dba7f3513e1948e86b064b6b84a432b37644 (diff)
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
Diffstat (limited to 'scripts/obs/update_obs_project.py')
-rwxr-xr-xscripts/obs/update_obs_project.py9
1 files 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)