commit:     3829672aa84492623130bf1303d567c1c1c2dd1c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 22 05:53:44 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 22 05:53:44 2020 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3829672a

genrdeps: Fix randomly skipping nested deps

FWIU the current logic skips || ( ( ... ) ( ... ) ) blocks.  Fix that.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 genrdeps/genrdeps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/genrdeps/genrdeps.py b/genrdeps/genrdeps.py
index d7eeb76..412fff8 100755
--- a/genrdeps/genrdeps.py
+++ b/genrdeps/genrdeps.py
@@ -10,7 +10,7 @@ def processDeps(deps,use=""):
        returnMe=[]
        for (index,x) in enumerate(deps):
                if type(x)==types.ListType:
-                       continue
+                       returnMe.extend(processDeps(x,use))
                elif x=="||":
                        returnMe.extend(processDeps(deps[index+1],use))
                elif x[-1]=="?":

Reply via email to