LNX-133: Create a server for building nightly builds of AlmaLinux

- It's added key argument '--json-output-path' to script `pungi-generate-package-json`

Change-Id: Ic18fa2708cc4913002023828b3be018d4907de25
This commit is contained in:
soksanichenko 2021-01-28 14:03:40 +02:00
parent cea8d92906
commit 3b5501b4bf

View File

@ -300,6 +300,12 @@ def create_parser():
'All of list elements should be separated by space',
required=False,
)
parser.add_argument(
'--json-output-path',
type=str,
help='Full path to output json file',
required=True,
)
return parser
@ -326,7 +332,7 @@ def cli_main():
excluded_packages=args.excluded_packages,
)
result = pg.generate_packages_json()
with open('packages.json', 'w') as packages_file:
with open(args.json_output_path, 'w') as packages_file:
json.dump(
result,
packages_file,