summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-05 03:30:24 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-05 03:30:24 +0000
commitf796aecb6d442f2ffb715a3883daae79fa838351 (patch)
treecdfb69b1013072ee6d06b838d1e4c4ddb850baa9
parentee8a242c4982d1254c29681061548ea343d51a28 (diff)
downloadportage-f796aecb6d442f2ffb715a3883daae79fa838351.tar.gz
portage-f796aecb6d442f2ffb715a3883daae79fa838351.tar.bz2
portage-f796aecb6d442f2ffb715a3883daae79fa838351.zip
Use writemsg() to warn about InvalidDependString exceptions that may
occur for installed packages. svn path=/main/trunk/; revision=10190
-rw-r--r--pym/_emerge/__init__.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 3b7842f66..3c45d684a 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3756,7 +3756,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
@@ -3785,7 +3789,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