comps-sync.py: Unify group loading logic

This commit is contained in:
Timothée Ravier 2023-09-27 10:30:41 +02:00
parent 62b98b6903
commit cf4dcc7206
3 changed files with 5 additions and 7 deletions

View file

@ -123,10 +123,8 @@ for gid in ws_environ.group_ids:
exclude_list = comps_exclude_list.get(gid.name, set())
ws_pkgs = load_packages_from_comps_group(ws_pkgs, comps, gid.name, exclude_list, comps_exclude_list_all)
ws_ostree_pkgs = set()
for pkg in comps.groups_match(id=ws_ostree_name)[0].packages:
if not is_exclude_listed(pkg.name, comps_exclude_list_all):
ws_ostree_pkgs.add(pkg.name)
exclude_list = comps_exclude_list.get(ws_ostree_name, set())
ws_pkgs = load_packages_from_comps_group(ws_pkgs, comps, ws_ostree_name, exclude_list, comps_exclude_list_all)
comps_unknown = set()
for arch in manifest_packages:
@ -137,8 +135,7 @@ for arch in manifest_packages:
else:
if pkg in ws_pkgs and arch in ws_pkgs[pkg][2]:
continue
if (pkg not in comps_include_list and
pkg not in ws_ostree_pkgs):
if (pkg not in comps_include_list):
comps_unknown.add((pkg, arch))
# Look for packages in the manifest but not in comps at all

View file

@ -119,6 +119,7 @@ packages:
- opensc
- openssh-clients
- openssh-server
- ostree-grub2
- pam_afs_session
- paps
- passwd
@ -147,6 +148,7 @@ packages:
- realtek-firmware
- rootfiles
- rpm
- rpm-ostree
- rsync
- samba-client
- selinux-policy-targeted

View file

@ -22,7 +22,6 @@ packages:
# Explicitely add Git docs
- git-core-doc
- lvm2
- rpm-ostree
# Required for compatibility with old bootloaders until we have bootupd
# See https://github.com/fedora-silverblue/issue-tracker/issues/120
- ostree-grub2