public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Paul Varner" <fuzzyray@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
Date: Tue,  8 May 2012 21:06:45 +0000 (UTC)	[thread overview]
Message-ID: <1336510984.9369c9a3e8d92ac445ff8929a448e83fd30fb485.fuzzyray@gentoo> (raw)

commit:     9369c9a3e8d92ac445ff8929a448e83fd30fb485
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Tue May  8 21:03:04 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Tue May  8 21:03:04 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=9369c9a3

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 slot."""
 			output = list()
+			zipped = list(zip(masks, keywords, slots))
 			for slot in self.__uniq(slots):
 				ms = list()
 				ks = list()
-				for m, k, s in zip(masks, keywords, slots):
+				for m, k, s in zipped:
 					if slot == s:
 						ms.append(m)
 						ks.append(k)
@@ -157,7 +158,7 @@ class keywords_content:
 			self.vartree = port.db[port.root]['vartree'].dbapi
 			self.mysettings = port.config(local_config=False)
 			self.versions = self.__getVersions(packages)
-			self.masks = map(lambda x: self.__getMaskStatus(x), packages)
+			self.masks = list(map(lambda x: self.__getMaskStatus(x), packages))
 
 	@staticmethod
 	def __packages_sort(package_content):



             reply	other threads:[~2012-05-08 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 21:06 Paul Varner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-09 20:14 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ Michał Górny
2012-05-16 21:59 Paul Varner
2012-04-11 15:01 Paul Varner
2011-05-29 10:59 Christian Ruppert
2011-05-16 16:40 Brian Dolbec
2011-02-25  2:23 Brian Dolbec
2011-02-25  2:23 Brian Dolbec
2011-02-24 21:49 Christian Ruppert
2011-02-24 21:41 Christian Ruppert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336510984.9369c9a3e8d92ac445ff8929a448e83fd30fb485.fuzzyray@gentoo \
    --to=fuzzyray@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox