comps-sync.py: Unify group loading logic
This commit is contained in:
parent
62b98b6903
commit
cf4dcc7206
3 changed files with 5 additions and 7 deletions
|
@ -123,10 +123,8 @@ for gid in ws_environ.group_ids:
|
||||||
exclude_list = comps_exclude_list.get(gid.name, set())
|
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_pkgs = load_packages_from_comps_group(ws_pkgs, comps, gid.name, exclude_list, comps_exclude_list_all)
|
||||||
|
|
||||||
ws_ostree_pkgs = set()
|
exclude_list = comps_exclude_list.get(ws_ostree_name, set())
|
||||||
for pkg in comps.groups_match(id=ws_ostree_name)[0].packages:
|
ws_pkgs = load_packages_from_comps_group(ws_pkgs, comps, ws_ostree_name, exclude_list, comps_exclude_list_all)
|
||||||
if not is_exclude_listed(pkg.name, comps_exclude_list_all):
|
|
||||||
ws_ostree_pkgs.add(pkg.name)
|
|
||||||
|
|
||||||
comps_unknown = set()
|
comps_unknown = set()
|
||||||
for arch in manifest_packages:
|
for arch in manifest_packages:
|
||||||
|
@ -137,8 +135,7 @@ for arch in manifest_packages:
|
||||||
else:
|
else:
|
||||||
if pkg in ws_pkgs and arch in ws_pkgs[pkg][2]:
|
if pkg in ws_pkgs and arch in ws_pkgs[pkg][2]:
|
||||||
continue
|
continue
|
||||||
if (pkg not in comps_include_list and
|
if (pkg not in comps_include_list):
|
||||||
pkg not in ws_ostree_pkgs):
|
|
||||||
comps_unknown.add((pkg, arch))
|
comps_unknown.add((pkg, arch))
|
||||||
|
|
||||||
# Look for packages in the manifest but not in comps at all
|
# Look for packages in the manifest but not in comps at all
|
||||||
|
|
|
@ -119,6 +119,7 @@ packages:
|
||||||
- opensc
|
- opensc
|
||||||
- openssh-clients
|
- openssh-clients
|
||||||
- openssh-server
|
- openssh-server
|
||||||
|
- ostree-grub2
|
||||||
- pam_afs_session
|
- pam_afs_session
|
||||||
- paps
|
- paps
|
||||||
- passwd
|
- passwd
|
||||||
|
@ -147,6 +148,7 @@ packages:
|
||||||
- realtek-firmware
|
- realtek-firmware
|
||||||
- rootfiles
|
- rootfiles
|
||||||
- rpm
|
- rpm
|
||||||
|
- rpm-ostree
|
||||||
- rsync
|
- rsync
|
||||||
- samba-client
|
- samba-client
|
||||||
- selinux-policy-targeted
|
- selinux-policy-targeted
|
||||||
|
|
|
@ -22,7 +22,6 @@ packages:
|
||||||
# Explicitely add Git docs
|
# Explicitely add Git docs
|
||||||
- git-core-doc
|
- git-core-doc
|
||||||
- lvm2
|
- lvm2
|
||||||
- rpm-ostree
|
|
||||||
# Required for compatibility with old bootloaders until we have bootupd
|
# Required for compatibility with old bootloaders until we have bootupd
|
||||||
# See https://github.com/fedora-silverblue/issue-tracker/issues/120
|
# See https://github.com/fedora-silverblue/issue-tracker/issues/120
|
||||||
- ostree-grub2
|
- ostree-grub2
|
||||||
|
|
Loading…
Reference in a new issue