From: fuzzyray Date: Fri, 14 Oct 2005 16:02:13 +0000 (-0000) Subject: Fixed bug in duplicate detection X-Git-Tag: gentoolkit-0.2.4.3~265 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57542bb13cea7e957d947fa613bb5b82a1c31451;p=gentoolkit.git Fixed bug in duplicate detection svn path=/; revision=248 --- diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index cde8cd0..a59928f 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -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