From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SRrcU-0001tm-G9 for garchives@archives.gentoo.org; Tue, 08 May 2012 21:06:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C727E0798; Tue, 8 May 2012 21:06:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1F458E077C for ; Tue, 8 May 2012 21:06:47 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 80FFA1B4066 for ; Tue, 8 May 2012 21:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 48494E542D for ; Tue, 8 May 2012 21:06:45 +0000 (UTC) From: "Paul Varner" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paul Varner" Message-ID: <1336510984.9369c9a3e8d92ac445ff8929a448e83fd30fb485.fuzzyray@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/eshowkw/keywords_content.py X-VCS-Directories: pym/gentoolkit/eshowkw/ X-VCS-Committer: fuzzyray X-VCS-Committer-Name: Paul Varner X-VCS-Revision: 9369c9a3e8d92ac445ff8929a448e83fd30fb485 X-VCS-Branch: gentoolkit Date: Tue, 8 May 2012 21:06:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cf384c41-f52a-4625-accb-d7752d056045 X-Archives-Hash: 04235fd09f7599bc4a6bf23f8b1c2cc9 commit: 9369c9a3e8d92ac445ff8929a448e83fd30fb485 Author: Paul Varner gentoo org> AuthorDate: Tue May 8 21:03:04 2012 +0000 Commit: Paul Varner gentoo org> CommitDate: Tue May 8 21:03:04 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoolkit.gi= t;a=3Dcommit;h=3D9369c9a3 Fix Bug 414627, where not all packages were being printed. Not sure of why this fixes it, but it appears to be caused by interaction between the map() and zip() iterator objects in python3. The fix is to use the list() operator to create a list from the iterator objects. --- pym/gentoolkit/eshowkw/keywords_content.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/= eshowkw/keywords_content.py index 3e2551d..77a68fb 100644 --- a/pym/gentoolkit/eshowkw/keywords_content.py +++ b/pym/gentoolkit/eshowkw/keywords_content.py @@ -23,10 +23,11 @@ class keywords_content: def __listRedundantSlots(self, masks, keywords, slots): """Search for redundant packages walking per keywords for specified s= lot.""" output =3D list() + zipped =3D list(zip(masks, keywords, slots)) for slot in self.__uniq(slots): ms =3D list() ks =3D list() - for m, k, s in zip(masks, keywords, slots): + for m, k, s in zipped: if slot =3D=3D s: ms.append(m) ks.append(k) @@ -157,7 +158,7 @@ class keywords_content: self.vartree =3D port.db[port.root]['vartree'].dbapi self.mysettings =3D port.config(local_config=3DFalse) self.versions =3D self.__getVersions(packages) - self.masks =3D map(lambda x: self.__getMaskStatus(x), packages) + self.masks =3D list(map(lambda x: self.__getMaskStatus(x), packages)) =20 @staticmethod def __packages_sort(package_content):