From: Zac Medico Date: Thu, 3 Feb 2011 03:41:10 +0000 (-0800) Subject: depgraph: rm obsolete AmbguousPackageName handler X-Git-Tag: v2.2.0_alpha20~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93328d0d02f4f0f6ce3fbaad93e978148a130238;p=portage.git depgraph: rm obsolete AmbguousPackageName handler --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 05ca1872e..920cd215f 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1174,8 +1174,8 @@ class depgraph(object): debug = "--debug" in self._frozen_config.myopts strict = mytype != "installed" - try: - for dep_root, dep_string, dep_priority, ignore_blockers in deps: + + for dep_root, dep_string, dep_priority, ignore_blockers in deps: if not dep_string: continue if debug: @@ -1229,25 +1229,6 @@ class depgraph(object): allow_unsatisfied, ignore_blockers=ignore_blockers): return 0 - except portage.exception.AmbiguousPackageName as e: - pkgs = e.args[0] - portage.writemsg("\n\n!!! An atom in the dependencies " + \ - "is not fully-qualified. Multiple matches:\n\n", noiselevel=-1) - for cpv in pkgs: - portage.writemsg(" %s\n" % cpv, noiselevel=-1) - portage.writemsg("\n", noiselevel=-1) - if mytype == "binary": - portage.writemsg( - "!!! This binary package cannot be installed: '%s'\n" % \ - mykey, noiselevel=-1) - elif mytype == "ebuild": - portdb = self._frozen_config.roots[myroot].trees["porttree"].dbapi - myebuild, mylocation = portdb.findname2(mykey, myrepo = pkg.repo) - portage.writemsg("!!! This ebuild cannot be installed: " + \ - "'%s'\n" % myebuild, noiselevel=-1) - portage.writemsg("!!! Please notify the package maintainer " + \ - "that atoms must be fully-qualified.\n", noiselevel=-1) - return 0 self._dynamic_config._traversed_pkg_deps.add(pkg) return 1