comps-sync.py: Move code under main function

This commit is contained in:
Timothée Ravier 2023-09-27 18:29:36 +02:00
parent 4ca120676a
commit fd1056f739

View file

@ -154,6 +154,7 @@ def update_manifests_from_groups(comps, groups, path, desktop, save, comps_exclu
else:
write_manifest(path, manifest_packages, include="fedora-common-ostree.yaml")
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--save", help="Write changes", action='store_true')
parser.add_argument("src", help="Source path")
@ -202,3 +203,6 @@ desktops_comps_groups = {
for desktop, groups in desktops_comps_groups.items():
print()
update_manifests_from_groups(comps, groups, f'{desktop}-desktop-pkgs.yaml', desktop, args.save, comps_desktop_exclude_list, comps_exclude_list_all)
if __name__ == "__main__":
main()