From: Zac Medico Date: Wed, 7 Feb 2007 19:54:13 +0000 (-0000) Subject: For bug #165783, handle an InvalidDependString exception triggered by an invalid... X-Git-Tag: v2.2_pre1~1743 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=411d007523f9508170ec6fb4ec070a1abb689ae1;p=portage.git For bug #165783, handle an InvalidDependString exception triggered by an invalid SRC_URI. svn path=/main/trunk/; revision=5908 --- diff --git a/bin/emerge b/bin/emerge index 21bcbf7bc..60d5d6bd3 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2487,9 +2487,15 @@ class depgraph: # size verbose mysize=0 if x[0] == "ebuild" and x[-1]!="nomerge": - myfilesdict = portdb.getfetchsizes( - pkg_key, useflags=self.useFlags[myroot][pkg_key], - debug=self.edebug) + try: + myfilesdict = portdb.getfetchsizes(pkg_key, + useflags=self.useFlags[myroot][pkg_key], + debug=self.edebug) + except portage.exception.InvalidDependString, e: + src_uri = portdb.aux_get(pkg_key, ["SRC_URI"])[0] + show_invalid_depstring_notice(x, src_uri, str(e)) + del e + sys.exit(1) if myfilesdict is None: myfilesdict="[empty/missing/bad digest]" else: