public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r10648 - main/trunk/pym/_emerge
@ 2008-06-11  9:33 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-06-11  9:33 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-06-11 09:33:41 +0000 (Wed, 11 Jun 2008)
New Revision: 10648

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Handle InvalidDependString in _package_cache.__setitem__().


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-06-11 09:20:51 UTC (rev 10647)
+++ main/trunk/pym/_emerge/__init__.py	2008-06-11 09:33:41 UTC (rev 10648)
@@ -5655,10 +5655,13 @@
 		def __setitem__(self, k, v):
 			dict.__setitem__(self, k, v)
 			root_config = self._depgraph.roots[v.root]
-			if visible(root_config.settings, v) and \
-				not (v.installed and \
-				v.root_config.settings.getMissingKeywords(v.cpv, v.metadata)):
-				root_config.visible_pkgs.cpv_inject(v)
+			try:
+				if visible(root_config.settings, v) and \
+					not (v.installed and \
+					v.root_config.settings.getMissingKeywords(v.cpv, v.metadata)):
+					root_config.visible_pkgs.cpv_inject(v)
+			except portage.exception.InvalidDependString:
+				pass
 
 class RepoDisplay(object):
 	def __init__(self, roots):

-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-11  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11  9:33 [gentoo-commits] portage r10648 - main/trunk/pym/_emerge Zac Medico (zmedico)

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