From: Zac Medico Date: Thu, 24 Mar 2011 04:08:35 +0000 (-0700) Subject: get_dep_chain: handle InvalidDependString X-Git-Tag: v2.1.9.45~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=937f4f958f77b54a4c46b94e89af3f1720450e6b;p=portage.git get_dep_chain: handle InvalidDependString --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index f17a93ccb..91ec7599e 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2308,8 +2308,12 @@ class depgraph(object): if target_atom is not None and isinstance(node, Package): affecting_use = set() for dep_str in "DEPEND", "RDEPEND", "PDEPEND": - affecting_use.update(extract_affecting_use( - node.metadata[dep_str], target_atom)) + try: + affecting_use.update(extract_affecting_use( + node.metadata[dep_str], target_atom)) + except InvalidDependString: + if not node.installed: + raise affecting_use.difference_update(node.use.mask, node.use.force) pkg_name = _unicode_decode("%s") % (node.cpv,) if affecting_use: