diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-24 21:23:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-24 21:23:39 +0000 |
commit | 006ec38511eee165241af56d348c26589dce93ae (patch) | |
tree | 16e8532a7249234eaa825ed547d7bca8ba9a0fa0 | |
parent | 7502324ea6d85f96b251973014684cba5251d973 (diff) | |
download | portage-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
-rw-r--r-- | pym/portage/dep.py | 3 |
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: |