summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to 'portato')
-rw-r--r--portato/backend/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 78a4b1f..02579fb 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -184,6 +184,10 @@ class Package (_Package):
def add (tree, deps):
iter = (x for x in deps)
for dep in iter:
+ if hasattr(dep, "__iter__"):
+ debug("Following dep is an unsupposed list: %s", dep)
+ assert(len(dep) == 1)
+ dep = dep[0]
if dep.endswith("?"):
ntree = tree.add_flag(dep[:-1])
n = iter.next()