-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use YumBase instead of YumBaseCli to get pkg updates
YumBaseCli was causing the logging of convert2rhel to be broken - after instantiating YumBaseCli every log message was duplicate on the output. The reason is that initialization of the YumBaseCli class instance includes calling logging.basicConfig() which sets up handlers on the root logger. It is possible to use the YumBase class, which does not affect logging, to get the same data - list of packages having updates available. The YumBaseCli logging handlers interfered with the convert2rhel logging as we use propage=True to be able to use caplog in our unit tests: #179
- Loading branch information
Showing
2 changed files
with
7 additions
and
23 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