summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-09 01:22:15 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-09 01:22:15 +0200
commit1d2d44b9162a9bcddc1a3b642c6f5038095b72c8 (patch)
tree178ad6b7794ae2d7c5520be298c0e3b7cfa68659 /portato/backend
parentacf2acc79558471ff909e9edb11b0bef5e95f25c (diff)
downloadportato-1d2d44b9162a9bcddc1a3b642c6f5038095b72c8.tar.gz
portato-1d2d44b9162a9bcddc1a3b642c6f5038095b72c8.tar.bz2
portato-1d2d44b9162a9bcddc1a3b642c6f5038095b72c8.zip
Do something useful if an assertionerror is thrown during dep-resolution
Diffstat (limited to '')
-rw-r--r--portato/backend/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 0ac22d3..1e17b1f 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -181,21 +181,21 @@ class Package (_Package):
tree = DependencyTree()
def add (tree, deps):
- iter = (x for x in deps)
- for dep in iter:
+ it = iter(deps)
+ for dep in it:
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()
+ n = it.next()
if not hasattr(n, "__iter__"):
n = (n,)
add(ntree, n)
elif dep == "||":
- n = iter.next() # skip
+ n = it.next() # skip
if not hasattr(n, "__iter__"):
n = [n]
else: