Fixed bug in duplicate detection
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 14 Oct 2005 16:02:13 +0000 (16:02 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 14 Oct 2005 16:02:13 +0000 (16:02 -0000)
svn path=/; revision=248

trunk/src/equery/equery

index cde8cd04a259769531ece163003295f6e4ca7eee..a59928f106f2a818f4947dd8f0d96faa367b664a 100755 (executable)
@@ -1229,15 +1229,15 @@ class CmdListPackages(Command):
                        dups = {}
                        newmatches = []
                        for pkg in matches:
-                               pkgname = pkg.get_name()
-                               if dups.has_key(pkgname):
-                                       dups[pkgname].append(pkg)
+                               mykey = pkg.get_category() + "/" + pkg.get_name() 
+                               if dups.has_key(mykey):
+                                       dups[mykey].append(pkg)
                                else:
-                                       dups[pkgname] = [pkg]
+                                       dups[mykey] = [pkg]
 
-                       for pkgname in dups.keys():
-                               if len(dups[pkgname]) > 1:
-                                       newmatches += dups[pkgname]
+                       for mykey in dups.keys():
+                               if len(dups[mykey]) > 1:
+                                       newmatches += dups[mykey]
 
                        matches = newmatches