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
--- ./yum/packages.py.jk	2007-03-02 11:12:07.000000000 -0500
+++ ./yum/packages.py	2007-03-02 11:12:37.000000000 -0500
@@ -94,7 +94,6 @@
                 for item in trylist:
                     if regex.match(item):
                         matched.extend(pkgdict[item])
-                        del pkgdict[item]
                         foundit = 1
  
                 if not foundit:    

Attachment: pgpkHSapNMk73.pgp
Description: PGP signature

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to