something rotten in the yum.searchGenerator

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Thu Sep 19 18:19:27 UTC 2013


Hi

Trying to fix some issues with seach in yumex today and found that
yum.searchGenerator behaves strange.

import yum
yb = yum.YumBase()
yb.setCacheDir()
fields = ['name']
keys = ['yum']
result = [res for res in yb.searchGenerator(fields, keys)]
for elem in result:
    po = elem[0]
    if not keys[0] in po.name.lower():
        print "Fail : ", str(po)

gives the following output:

Loaded plugins: langpacks
Fail :  ailurus-10.10.3-5.fc19.noarch
Fail :  createrepo_c-0.1.17-1.fc19.x86_64
Fail :  dnf-0.3.7-1.gitf8bdc98.fc19.noarch
Fail :  pkgwat-0.6-2.fc19.noarch
Fail :  repoview-0.6.6-4.fc19.noarch

This is clearly false positives

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20130919/89144057/attachment.html>


More information about the Yum-devel mailing list