Skip to content
Snippets Groups Projects
Commit 9f11e383 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Make list of packages optional in mpcdf_info

parent 2947fe26
No related branches found
No related tags found
No related merge requests found
Pipeline #221346 passed
......@@ -9,7 +9,9 @@ import osc.core
import osc.cmdln
def do_mpcdf_info(self, subcmd, opts, *args):
@osc.cmdln.option('-d', '--details', action="store_true",
help='Print details about each package as well')
def do_mpcdf_info(self, subcmd, opts, *args) -> None:
"""mpcdf_info:
Basic information about an MPCDF OBS project
......@@ -46,6 +48,9 @@ def do_mpcdf_info(self, subcmd, opts, *args):
print_attribute("ROCm versions", "MPCDF:rocm_modules")
print_attribute("PGI compilers", "MPCDF:pgi_modules")
if not opts.details:
raise SystemExit(0)
unmanaged = []
packages = osc.core.meta_get_packagelist(api_url, project)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment