public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-02-24 21:41 Christian Ruppert
  0 siblings, 0 replies; 10+ messages in thread
From: Christian Ruppert @ 2011-02-24 21:41 UTC (permalink / raw
  To: gentoo-commits

commit:     d5f8e2ac1754a42e9a5edcd2ebb4fa30e3134e5b
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 24 21:39:46 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Thu Feb 24 21:39:46 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=d5f8e2ac

Fix package.mask check

getmaskingstatus() returns an array so it always returned False if the array has
multiple items

---
 pym/gentoolkit/eshowkw/keywords_content.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index 7cf53e7..0dae2fb 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -138,7 +138,7 @@ class keywords_content:
 			"""Figure out if package is pmasked."""
 			try:
 				mysettings = port.config(local_config=False)
-				if port.getmaskingstatus(cpv, settings=mysettings) == ['package.mask']:
+				if "package.mask" in port.getmaskingstatus(cpv, settings=mysettings):
 					return True
 			except:
 				# occurs when package is not known by portdb



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-02-24 21:49 Christian Ruppert
  0 siblings, 0 replies; 10+ messages in thread
From: Christian Ruppert @ 2011-02-24 21:49 UTC (permalink / raw
  To: gentoo-commits

commit:     a8c9fdabc88975cb1d35305c1e91d0f5ce624663
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 24 21:48:54 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Thu Feb 24 21:48:54 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=a8c9fdab

Whitespace

---
 pym/gentoolkit/eshowkw/keywords_content.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index 0dae2fb..a8ffedc 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -161,7 +161,7 @@ class keywords_content:
 		Sort packages queried based on version and slot
 		%% pn , repo, slot, keywords
 		"""
-		from operator import itemgetter 
+		from operator import itemgetter
 
 		if len(package_content) > 1:
 			ver_map = {}



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-02-25  2:23 Brian Dolbec
  0 siblings, 0 replies; 10+ messages in thread
From: Brian Dolbec @ 2011-02-25  2:23 UTC (permalink / raw
  To: gentoo-commits

commit:     897833f0abc06b88849c7df76de6ef0f4023d767
Author:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Fri Feb 25 01:53:01 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Feb 25 01:53:01 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=897833f0

move mysettings out of __getMaskStatus() into __init__() so it is only done once = 1/7th the time to run.
decorate functions not needing self with @staticmethod.

---
 pym/gentoolkit/eshowkw/keywords_content.py |   33 +++++++++++++++++----------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index a8ffedc..637c99a 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -34,7 +34,8 @@ class keywords_content:
 			# this is required because the list itself is not just one level depth
 			return list(''.join(output))
 
-		def __uniq(self, seq):
+		@staticmethod
+		def __uniq(seq):
 			"""Remove all duplicate elements from list."""
 			seen = {}
 			result = []
@@ -45,7 +46,8 @@ class keywords_content:
 				result.append(item)
 			return result
 
-		def __cleanKeyword(self, keyword):
+		@staticmethod
+		def __cleanKeyword(keyword):
 			"""Remove masked arches and hardmasks from keywords since we don't care about that."""
 			return ["%s" % x for x in keyword.split()
 				if x != '-*' and not x.startswith('-')]
@@ -137,8 +139,7 @@ class keywords_content:
 		def __getMaskStatus(self, cpv):
 			"""Figure out if package is pmasked."""
 			try:
-				mysettings = port.config(local_config=False)
-				if "package.mask" in port.getmaskingstatus(cpv, settings=mysettings):
+				if "package.mask" in port.getmaskingstatus(cpv, settings=self.mysettings):
 					return True
 			except:
 				# occurs when package is not known by portdb
@@ -146,17 +147,20 @@ class keywords_content:
 				pass
 			return False
 
+
 		def __getInstallStatus(self, cpv):
 			"""Check if package version we test is installed."""
-			vartree = port.db[port.settings['ROOT']]['vartree'].dbapi
-			return vartree.cpv_exists(cpv)
+			return self.vartree.cpv_exists(cpv)
 
 		def __init__(self, packages):
 			"""Query all relevant data for version data formatting"""
+			self.vartree = port.db[port.settings['ROOT']]['vartree'].dbapi
+			self.mysettings = port.config(local_config=False)
 			self.versions = self.__getVersions(packages)
 			self.masks = map(lambda x: self.__getMaskStatus(x), packages)
 
-	def __packages_sort(self, package_content):
+	@staticmethod
+	def __packages_sort(package_content):
 		"""
 		Sort packages queried based on version and slot
 		%% pn , repo, slot, keywords
@@ -218,7 +222,8 @@ class keywords_content:
 			raise SystemExit(msg_err)
 		return list(zip(*matches))
 
-	def __getMetadata(self, pdb, package, repo):
+	@staticmethod
+	def __getMetadata(pdb, package, repo):
 		"""Obtain all required metadata from portage auxdb"""
 		try:
 			metadata = pdb.aux_get(package, ['KEYWORDS', 'SLOT'], repo)
@@ -235,7 +240,8 @@ class keywords_content:
 			for i, arch in enumerate(keywords_list)])
 				for version in keywords]
 
-	def __prepareKeywordChar(self, arch, field, keywords, usebold = False, toplist = 'archlist'):
+	@staticmethod
+	def __prepareKeywordChar(arch, field, keywords, usebold = False, toplist = 'archlist'):
 		"""
 		Convert specified keywords for package into their visual replacements.
 		# possibilities:
@@ -262,7 +268,8 @@ class keywords_content:
 			char = colorize('bold', char)
 		return char
 
-	def __formatVersions(self, versions, align, length):
+	@staticmethod
+	def __formatVersions(versions, align, length):
 		"""Append colors and align keywords properly"""
 		# % are used as separators for further split so we wont loose spaces and coloring
 		tmp = []
@@ -279,7 +286,8 @@ class keywords_content:
 				tmp.append(pv)
 		return tmp
 
-	def __formatAdditional(self, additional, color, length):
+	@staticmethod
+	def __formatAdditional(additional, color, length):
 		"""Align additional items properly"""
 		# % are used as separators for further split so we wont loose spaces and coloring
 		tmp = []
@@ -294,7 +302,8 @@ class keywords_content:
 			tmp.append(x)
 		return tmp
 
-	def __prepareContentResult(self, versions, keywords, redundant, slots, slot_length, repos, linesep):
+	@staticmethod
+	def __prepareContentResult(versions, keywords, redundant, slots, slot_length, repos, linesep):
 		"""Parse version fields into one list with proper separators"""
 		content = []
 		oldslot = ''



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-02-25  2:23 Brian Dolbec
  0 siblings, 0 replies; 10+ messages in thread
From: Brian Dolbec @ 2011-02-25  2:23 UTC (permalink / raw
  To: gentoo-commits

commit:     01083994795dec1ca6c366ea7a494364ce4e15f8
Author:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Fri Feb 25 02:06:04 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Feb 25 02:06:04 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=01083994

decorate some functions as @staticmethod

---
 pym/gentoolkit/eshowkw/keywords_header.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py
index 1d52749..23588a4 100644
--- a/pym/gentoolkit/eshowkw/keywords_header.py
+++ b/pym/gentoolkit/eshowkw/keywords_header.py
@@ -14,12 +14,14 @@ class keywords_header:
 	__ADDITIONAL_FIELDS = [ 'unused', 'slot' ]
 	__EXTRA_FIELDS = [ 'repo' ]
 
-	def __readKeywords(self):
+	@staticmethod
+	def __readKeywords():
 		"""Read all available keywords from portage."""
 		return [x for x in ports.archlist()
 			if not x.startswith('~')]
 
-	def __sortKeywords(self, keywords, prefix = False, required_keywords = []):
+	@staticmethod
+	def __sortKeywords(keywords, prefix = False, required_keywords = []):
 		"""Sort keywords with short archs first"""
 		# user specified only some keywords to display
 		if len(required_keywords) != 0:
@@ -62,7 +64,8 @@ class keywords_header:
 				tmp.append(keyword)
 		return tmp
 
-	def __formatAdditional(self, additional, align, length):
+	@staticmethod
+	def __formatAdditional(additional, align, length):
 		"""Align additional items properly"""
 		# % are used as separators for further split so we wont loose spaces and coloring
 		return ['%'.join(align_string(x, align, length)) for x in additional]



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-05-16 16:40 Brian Dolbec
  0 siblings, 0 replies; 10+ messages in thread
From: Brian Dolbec @ 2011-05-16 16:40 UTC (permalink / raw
  To: gentoo-commits

commit:     f5def123a156abc90841da2ade2601f06623010d
Author:     dol-sen <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Mon May 16 16:38:02 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Mon May 16 16:38:02 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=f5def123

fix py3 compatibility issues in eshowkw.

---
 pym/gentoolkit/eshowkw/__init__.py         |   12 +++++++-----
 pym/gentoolkit/eshowkw/display_pretty.py   |    9 ++++++---
 pym/gentoolkit/eshowkw/keywords_content.py |    6 +++---
 pym/gentoolkit/eshowkw/keywords_header.py  |    4 ++--
 4 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py
index 9c70bee..e0544a9 100644
--- a/pym/gentoolkit/eshowkw/__init__.py
+++ b/pym/gentoolkit/eshowkw/__init__.py
@@ -14,10 +14,10 @@ from portage import config as portc
 from portage import portdbapi as portdbapi
 from portage import db as portdb
 
-from .keywords_header import keywords_header
-from .keywords_content import keywords_content
-from .display_pretty import string_rotator
-from .display_pretty import display
+from gentoolkit.eshowkw.keywords_header import keywords_header
+from gentoolkit.eshowkw.keywords_content import keywords_content
+from gentoolkit.eshowkw.display_pretty import string_rotator
+from gentoolkit.eshowkw.display_pretty import display
 
 ignore_slots = False
 bold = False
@@ -25,6 +25,7 @@ order = 'bottom'
 topper = 'versionlist'
 
 def process_display(package, keywords, dbapi):
+
 	portdata = keywords_content(package, keywords.keywords, dbapi, ignore_slots, order, bold, topper)
 	if topper == 'archlist':
 		header = string_rotator().rotateContent(keywords.content, keywords.length, bold)
@@ -108,7 +109,8 @@ def main(argv, indirect = False):
 		dbapi = portdbapi(mysettings=mysettings)
 		if not use_overlays:
 			dbapi.porttrees = [dbapi.porttree_root]
-		map(lambda x: process_display(x, keywords, dbapi), package)
+		for pkg in package:
+			process_display(pkg, keywords, dbapi)
 	else:
 		currdir = os.getcwd()
 		# check if there are actualy some ebuilds

diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py
index 270a0eb..beca5f4 100644
--- a/pym/gentoolkit/eshowkw/display_pretty.py
+++ b/pym/gentoolkit/eshowkw/display_pretty.py
@@ -3,7 +3,10 @@
 # Distributed under the terms of the GNU General Public License v2
 
 from portage.output import colorize
-from itertools import izip_longest
+try: # newer python versions
+	from itertools import zip_longest
+except ImportError: # older python naming
+	from itertools import izip_longest as zip_longest
 
 __all__ = ['string_rotator', 'colorize_string', 'align_string', 'rotate_dash', 'print_content', 'display']
 
@@ -17,14 +20,14 @@ def display(plain_list, rotated_list, plain_width, rotated_height, cp, toplist =
 	if toplist != 'archlist':
 		corner_image.extend(plain_list)
 	data_printout = ['%s%s' % (x, y)
-		for x, y in izip_longest(corner_image, rotated_list, fillvalue=corner_image[0])]
+		for x, y in zip_longest(corner_image, rotated_list, fillvalue=corner_image[0])]
 	if toplist == 'archlist':
 		data_printout.extend(plain_list)
 	output.extend(data_printout)
 	print(print_content(output))
 
 def align_string(string, align, length):
-	"""Align string to the specified alignment (left or right, and after rotation it becames top and bottom)"""
+	"""Align string to the specified alignment (left or right, and after rotation it becomes top and bottom)"""
 	if align == 'top' or align == 'left':
 		string = string.ljust(length)
 	else:

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index 637c99a..99d652e 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -8,8 +8,8 @@ from portage.output import colorize
 
 __all__ = ['keywords_content']
 
-from display_pretty import colorize_string
-from display_pretty import align_string
+from gentoolkit.eshowkw.display_pretty import colorize_string
+from gentoolkit.eshowkw.display_pretty import align_string
 
 class keywords_content:
 	class RedundancyChecker:
@@ -101,7 +101,7 @@ class keywords_content:
 		def __getVersions(self, packages):
 			"""Obtain properly aligned version strings without colors."""
 			revlength = max([len(self.__getRevision(x)) for x in packages])
-			return map(lambda x: self.__separateVersion(x, revlength), packages)
+			return  [self.__separateVersion(x, revlength) for x in packages]
 
 		def __getRevision(self, cpv):
 			"""Get revision informations for each package for nice further alignment"""

diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py
index 23588a4..f7e3e50 100644
--- a/pym/gentoolkit/eshowkw/keywords_header.py
+++ b/pym/gentoolkit/eshowkw/keywords_header.py
@@ -6,8 +6,8 @@ __all__ = ['keywords_header']
 
 from portage import settings as ports
 from portage.output import colorize
-from display_pretty import colorize_string
-from display_pretty import align_string
+from gentoolkit.eshowkw.display_pretty import colorize_string
+from gentoolkit.eshowkw.display_pretty import align_string
 
 class keywords_header:
 	__IMPARCHS = [ 'arm', 'amd64', 'x86' ]



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2011-05-29 10:59 Christian Ruppert
  0 siblings, 0 replies; 10+ messages in thread
From: Christian Ruppert @ 2011-05-29 10:59 UTC (permalink / raw
  To: gentoo-commits

commit:     a87846fbb8d3f88d37d8c295021921a6e136145c
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 10:57:11 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Sun May 29 10:57:11 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=a87846fb

Allow only one arg for --arch/-a

Allowing multiple args for -a/--arch causes some trouble (depending on the order)
E.g. "eshowkw cat/pkg -a a b" would work while "eshowkw -a a cat/pkg" wouldn't
because it would count cat/pkg to the -a/--arch option.

eshowkw -a amd64 kdelibs
No ebuilds at "/root"

---
 pym/gentoolkit/eshowkw/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py
index e0544a9..86c59b7 100644
--- a/pym/gentoolkit/eshowkw/__init__.py
+++ b/pym/gentoolkit/eshowkw/__init__.py
@@ -56,7 +56,7 @@ def process_args(argv):
 
 	parser.add_argument('package', nargs='*', default=None, help='Packages to check.')
 
-	parser.add_argument('-a', '--arch', nargs='+', default=[], help='Display only specified arch(s)')
+	parser.add_argument('-a', '--arch', nargs=1, default=[], help='Display only specified arch(s)')
 
 	parser.add_argument('-A', '--align', nargs='?', default='bottom', choices=['top', 'bottom'],
 		help='Specify alignment for descriptions.')



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2012-04-11 15:01 Paul Varner
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Varner @ 2012-04-11 15:01 UTC (permalink / raw
  To: gentoo-commits

commit:     2f84d917af5da15f832d8d246cfbbac848a0a047
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 11 15:00:56 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Wed Apr 11 15:00:56 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2f84d917

Fix eshowkw traceback on prefix enviroments (Bug 411599).

---
 pym/gentoolkit/eshowkw/keywords_content.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index 99d652e..3e2551d 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -154,7 +154,7 @@ class keywords_content:
 
 		def __init__(self, packages):
 			"""Query all relevant data for version data formatting"""
-			self.vartree = port.db[port.settings['ROOT']]['vartree'].dbapi
+			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)



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2012-05-08 21:06 Paul Varner
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Varner @ 2012-05-08 21:06 UTC (permalink / raw
  To: gentoo-commits

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):



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2012-05-16 21:59 Paul Varner
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Varner @ 2012-05-16 21:59 UTC (permalink / raw
  To: gentoo-commits

commit:     ba64705ea61bbfe506bee228b56758216ffb987c
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Wed May 16 21:58:04 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Wed May 16 21:58:04 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ba64705e

Fix output to be sorted using portage.versions.vercmp (bug 409449).

---
 pym/gentoolkit/eshowkw/keywords_content.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py
index 77a68fb..2e6c0fa 100644
--- a/pym/gentoolkit/eshowkw/keywords_content.py
+++ b/pym/gentoolkit/eshowkw/keywords_content.py
@@ -176,7 +176,6 @@ class keywords_content:
 				return port.versions.vercmp(ver_map[cpv1[0]], ver_map[cpv2[0]])
 
 			package_content.sort(key=port.util.cmp_sort_key(cmp_cpv))
-			package_content.sort(key=itemgetter(2))
 
 	def __xmatch(self, pdb, package):
 		"""xmatch function that searches for all packages over all repos"""



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/
@ 2015-08-09 20:14 Michał Górny
  0 siblings, 0 replies; 10+ messages in thread
From: Michał Górny @ 2015-08-09 20:14 UTC (permalink / raw
  To: gentoo-commits

commit:     b0543b42f7921112c80a66663f20e5a3236a4818
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 09:31:33 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 09:34:01 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=b0543b42

eshowkw: Gray out unstable arches

 pym/gentoolkit/eshowkw/keywords_header.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pym/gentoolkit/eshowkw/keywords_header.py b/pym/gentoolkit/eshowkw/keywords_header.py
index f7e3e50..610fcaf 100644
--- a/pym/gentoolkit/eshowkw/keywords_header.py
+++ b/pym/gentoolkit/eshowkw/keywords_header.py
@@ -11,6 +11,7 @@ from gentoolkit.eshowkw.display_pretty import align_string
 
 class keywords_header:
 	__IMPARCHS = [ 'arm', 'amd64', 'x86' ]
+	__UNSTABLE_ARCHS = [ 'arm64', 'm68k', 'mips', 's390', 'sh' ]
 	__ADDITIONAL_FIELDS = [ 'unused', 'slot' ]
 	__EXTRA_FIELDS = [ 'repo' ]
 
@@ -60,6 +61,8 @@ class keywords_header:
 			keyword = '%'.join(list(keyword))
 			if tmp2 in self.__IMPARCHS:
 				tmp.append(colorize_string('darkyellow', keyword))
+			elif tmp2 in self.__UNSTABLE_ARCHS:
+				tmp.append(colorize_string('darkgray', keyword))
 			else:
 				tmp.append(keyword)
 		return tmp


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-08-09 20:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 21:06 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/eshowkw/ Paul Varner
  -- strict thread matches above, loose matches on Subject: below --
2015-08-09 20:14 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox