Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use python-hawkey instead of rpm-python.
The advantages are that the hawkey API is consistent between python versions, and that it is a bit cleaner for this purpose. python-hawkey adds two new dependencies above what rpm-python adds, but it is required by dnf anyway, so it will likely be installed by most users. Now raise an AvailabilityError if the number of packages is not exactly equal to 1. This is more correct and is not going to cause more stack traces, because the error is caught in the method that calls packageVersion. Signed-off-by: mulhern <amulhern@redhat.com>
- Loading branch information
Showing
2 changed files
with
11 additions
and
12 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