summaryrefslogtreecommitdiff
path: root/portato/backend/package.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-29 13:58:06 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-29 13:58:06 +0100
commita394faaf3d7df021b70fd7e9ea1255d1bad30f8c (patch)
tree00a725364288f34fee61cad5f456cd57b72fe920 /portato/backend/package.py
parent441c99ed709ecdfe4d50970cc252383298ddb272 (diff)
downloadportato-a394faaf3d7df021b70fd7e9ea1255d1bad30f8c.tar.gz
portato-a394faaf3d7df021b70fd7e9ea1255d1bad30f8c.tar.bz2
portato-a394faaf3d7df021b70fd7e9ea1255d1bad30f8c.zip
Fixes issue #13.
Diffstat (limited to '')
-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()