Red Hat Bugzilla – Bug 1253517
Yum via python returning incorrect package lists
Last modified: 2016-11-14 07:19:54 EST
Description of problem:
When called via a python script the new version of yum in 6.7
is returning incorrect pkgs.available some packages that are
in the repo are not returned as part of the list.
Version-Release number of selected component (if applicable):
from yum import YumBase
yumbase = YumBase()
pkgs = yumbase.doPackageLists(patterns=)
for pkg in sorted(pkgs.available):
Steps to Reproduce:
Run the above python snippet in a python terminal.
This will break any scripts that use the yum python modules
directly as the results being returned are incorrect.
according to my testing the result is the same as for yum-3.2.29-60.el6.noarch from RHEL-6.6 and yum-3.2.29-40.el6.noarch from RHEL-6.5. Btw, it matches the output of the
yum list available openssh\*
command (there is a missing 'print' at the last line of the reproducer in #c0)
Could you please provide more evidence, e.g. yum version that was working the way you expected? Thank you.
We can't move forward on this report unless the requested information is provided, so I'm closing this.