From 3b5501b4bf79a460f62606aec6db37b6184e0fc2 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Thu, 28 Jan 2021 14:03:40 +0200 Subject: [PATCH] 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 --- pungi/scripts/create_packages_json.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pungi/scripts/create_packages_json.py b/pungi/scripts/create_packages_json.py index 150fbd8e..c36f2b7d 100644 --- a/pungi/scripts/create_packages_json.py +++ b/pungi/scripts/create_packages_json.py @@ -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,