From a981b183da38a3a85ed3e2938b7ce5640e6ef026 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 20 Apr 2007 21:31:53 +0000 Subject: [PATCH] For bug #175344, handle a potential InvalidDependString exception when parsing PROVIDE. svn path=/main/trunk/; revision=6419 --- pym/emerge/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 3a434fb0f..8dbe72b18 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -1542,8 +1542,14 @@ class depgraph: if p_status == "merge": # Update old-style virtuals if this package provides any. # These are needed for dep_virtual calls inside dep_check. - self.pkgsettings[p_root].setinst(p_key, - self.trees[p_root][self.pkg_tree_map[p_type]].dbapi) + p_db = self.trees[p_root][self.pkg_tree_map[p_type]].dbapi + try: + self.pkgsettings[p_root].setinst(p_key, p_db) + except portage.exception.InvalidDependString, e: + provide = p_db.aux_get(p_key, ["PROVIDE"])[0] + show_invalid_depstring_notice(myparent, provide, str(e)) + del e + return 0 if "--debug" in self.myopts: print "Candidates:",mymerge -- 2.26.2