create_packages_json: drop packages superseded by Obsoletes #18

Merged
alukoshko merged 1 commits from obsoletes-aware-packages-json into master 2026-05-04 13:59:03 +00:00
Owner

Walk the selected packages and, for each variant arch, drop any package
whose Name+EVR is matched by another package's Obsoletes: declaration.
The check is performed across all variants of the same arch in the
compose, mirroring how dnf enforces Obsoletes globally across enabled
repos at install time. Self-obsoletes (same Name) are ignored — they
describe old versions of the same package, not a different package
being superseded — and entries listed in included_packages are kept.

A new optional --obsoletes-report writes a JSON sidecar listing each
dropped package with its obsoleter(s).

Bump release to 1%{?dist}.alma.3.

Walk the selected packages and, for each variant arch, drop any package whose Name+EVR is matched by another package's Obsoletes: declaration. The check is performed across all variants of the same arch in the compose, mirroring how dnf enforces Obsoletes globally across enabled repos at install time. Self-obsoletes (same Name) are ignored — they describe old versions of the same package, not a different package being superseded — and entries listed in included_packages are kept. A new optional --obsoletes-report writes a JSON sidecar listing each dropped package with its obsoleter(s). Bump release to 1%{?dist}.alma.3.
alukoshko added 1 commit 2026-05-04 13:52:32 +00:00
Walk the selected packages and, for each variant arch, drop any package
whose Name+EVR is matched by another package's Obsoletes: declaration.
The check is performed across all variants of the same arch in the
compose, mirroring how dnf enforces Obsoletes globally across enabled
repos at install time. Self-obsoletes (same Name) are ignored — they
describe old versions of the same package, not a different package
being superseded — and entries listed in included_packages are kept.

A new optional --obsoletes-report writes a JSON sidecar listing each
dropped package with its obsoleter(s).

Bump release to 1%{?dist}.alma.3.
alukoshko merged commit 7625279bee into master 2026-05-04 13:59:03 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: almalinux/pungi#18
No description provided.