From: fuzzyray Date: Thu, 10 Dec 2009 22:12:24 +0000 (-0000) Subject: Merge genscripts rev 122 to fix equery list --duplicates traceback X-Git-Tag: gentoolkit-0.3.0_rc10~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e65f393f937f4518c614d9a23a3195371e497c1e;p=gentoolkit.git Merge genscripts rev 122 to fix equery list --duplicates traceback svn path=/trunk/gentoolkit/; revision=718 --- diff --git a/pym/gentoolkit/equery/list_.py b/pym/gentoolkit/equery/list_.py index 32f8eff..c3e7f07 100644 --- a/pym/gentoolkit/equery/list_.py +++ b/pym/gentoolkit/equery/list_.py @@ -83,10 +83,10 @@ def get_duplicates(matches): dups = {} result = [] for pkg in matches: - if pkg.cp in dups: - dups[pkg.cp].append(pkg) + if pkg.cpv.cp in dups: + dups[pkg.cpv.cp].append(pkg) else: - dups[pkg.cp] = [pkg] + dups[pkg.cpv.cp] = [pkg] for cpv in dups.values(): if len(cpv) > 1: