summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2006-01-24 14:54:31 +0000
committerJason Stubbs <jstubbs@gentoo.org>2006-01-24 14:54:31 +0000
commit7a49b4e62311c7945a64b10c103a49c22461f798 (patch)
tree2c08f83ebd6c2b3810aa9d8463962ac5e196dc19 /pym/portage.py
parent3d7b9c71e677e2065f262885ace3d127e2f42c13 (diff)
downloadportage-7a49b4e62311c7945a64b10c103a49c22461f798.tar.gz
portage-7a49b4e62311c7945a64b10c103a49c22461f798.tar.bz2
portage-7a49b4e62311c7945a64b10c103a49c22461f798.zip
Move DEPEND empty sublist processing back into use_reduce
svn path=/main/trunk/; revision=2578
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/pym/portage.py b/pym/portage.py
index e05d311c5..44e4b9260 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3375,26 +3375,6 @@ def dep_check(depstring,mydbapi,mysettings,use="yes",mode=None,myuse=None,use_ca
#if mysplit==None, then we have a parse error (paren mismatch or misplaced ||)
#up until here, we haven't needed to look at the database tree
- # recursive cleansing of empty arrays.
- # without this, portage eats itself if fed a || ()
- def f(a):
- x = 0
- l = len(a)
- while x < l:
- if isinstance(a[x], list):
- l2 = len(a[x])
- if l2 == 0:
- a.pop(x)
- elif l2 == 1 and a[x][0] in ("||", "&&"):
- a.pop(x)
- else:
- f(a[x])
- x+=1
- continue
- l-=1
- x+=1
- f(mysplit)
-
if mysplit==None:
return [0,"Parse Error (parentheses mismatch?)"]
elif mysplit==[]: