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 package sorting (RHBZ#1696822)
The sorting algorithm for RPMs sorted this way: - before the packages with the higher versions - among the packages with the version version, first noarch packages, then 64bit packages, and then 32bit packages This was broken in at least two ways: - the higher installed version may not be of the same host architecture - if the host architecture is 32bit, and there is a 64bit package of a 32bit installed one, the 64bit version was preferred Instead: - first sort by architecture, preferring noarch packages, and packages of the host architecture - then sort by version This way, the higher version of the host architecture is preferred, otherwise the higher version of any foreign architecture is chosen.
- Loading branch information