-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keeping n latest rpms for different arches [RHELDST-21855] (#58)
* Fix keeping n latest rpms for different arches [RHELDST-21855] Yum repositories can contain rpms with different arches of the same package. We need to make sure that only the highest and the same version of rpms are kept. Previously output contained in some cases pkg.arch_x.v_1 and pkg.arch_y.v2 which is incorrect because of mixed versions and for some workflows system can end up in the uninstallable state. This change makes sure that only pkg.arch_x.v_1 and pkg_arch_y.v_1 (if present) will be in output and it won't end with mixed versions. This is also fixed for parameter n>=2 which not used currently in practice. * [pre-commit.ci] auto fixes from black and isort code formatting --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f3a440b
commit 6526f09
Showing
2 changed files
with
110 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters