From: Zac Medico Date: Mon, 5 May 2008 03:31:40 +0000 (-0000) Subject: Use writemsg() to warn about InvalidDependString exceptions that may X-Git-Tag: v2.1.5~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e3e6a220313745818a79396b98ac0611d618e59;p=portage.git Use writemsg() to warn about InvalidDependString exceptions that may occur for installed packages. (trunk r10190) svn path=/main/branches/2.1.2/; revision=10191 --- diff --git a/bin/emerge b/bin/emerge index a476fd9e3..39bb111a7 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3907,7 +3907,11 @@ class depgraph(object): "system"].iterAtomsForPackage(task): skip = True break - except portage_exception.InvalidDependString: + except portage_exception.InvalidDependString, e: + portage.writemsg("!!! Invalid PROVIDE in " + \ + "'%svar/db/pkg/%s/PROVIDE': %s\n" % \ + (task.root, task.cpv, e), noiselevel=-1) + del e skip = True if skip: continue @@ -3936,7 +3940,11 @@ class depgraph(object): if not satisfied: skip = True break - except portage_exception.InvalidDependString: + except portage_exception.InvalidDependString, e: + portage.writemsg("!!! Invalid PROVIDE in " + \ + "'%svar/db/pkg/%s/PROVIDE': %s\n" % \ + (task.root, task.cpv, e), noiselevel=-1) + del e skip = True if skip: continue