summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-24 21:23:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-24 21:23:39 +0000
commit006ec38511eee165241af56d348c26589dce93ae (patch)
tree16e8532a7249234eaa825ed547d7bca8ba9a0fa0 /pym
parent7502324ea6d85f96b251973014684cba5251d973 (diff)
downloadportage-006ec38511eee165241af56d348c26589dce93ae.tar.gz
portage-006ec38511eee165241af56d348c26589dce93ae.tar.bz2
portage-006ec38511eee165241af56d348c26589dce93ae.zip
Fix paren_reduce() so that it appropriately raises an InvalidDependString()
in some cases, instead of a nonsense AttributeError. svn path=/main/trunk/; revision=10392
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dep.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index 998abfee7..5f858849b 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -115,6 +115,9 @@ def paren_reduce(mystr,tokenize=1):
subsec = strip_empty(subsec.split(" "))
return [mylist+subsec,tail]
return mylist+[subsec],tail
+ if not isinstance(tail, basestring):
+ raise portage.exception.InvalidDependString(
+ "malformed syntax: '%s'" % mystr)
mystr = tail
if freesec:
if tokenize: