[Yum-devel] Fix for unmatched false positives in yum/packages.py parsePackages
Jesse Keating
jkeating at redhat.com
Fri Mar 2 16:23:36 UTC 2007
Currently parsePackages, once it maches a glob, removes the match from the
pkgdict, making it impossible to further match the same thing. Case:
['system-config-*', 'system-config-samba'] are both passed as user commands
into parsePackages. The glob will match 'system-config-samba' among others,
but when the pkgdict is searched for 'system-config-samba' directly it isn't
found, and thus tossed into unmatched.
By removing the line that removes the match from the dict I'm able to get the
usage I would expect, system-config-samba is in both exactmatched and matched
since it was matched both ways. My software joins the lists together and
makes it unique.
Attached is the simple patch.
--
Jesse Keating
Release Engineer: Fedora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unmatched-falsepositive.patch
Type: text/x-diff
Size: 393 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070302/1ce580c2/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070302/1ce580c2/attachment.pgp
More information about the Yum-devel
mailing list