Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
rpm: fix version comparison
When comparing two RPMs, also the epoch, and the release must be taken into account. Hence, add a new helper to get the EVR string of a package, and use it when sorting each list of installed packages. The mapping is done to avoid recreating the EVR strings at every comparison.
- Loading branch information
Showing
1 changed file
with
26 additions
and
3 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