aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-07-27 23:30:04 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-07-28 16:01:17 +0200
commit7ed8d37ed5746cd48b656a61d4a6ce66c3128cd6 (patch)
treed53d66ca5e01d1c0aacb80087299db8c89e78a51 /src
parentAdded checking for present use flags before remove (diff)
downloadcollagen-7ed8d37ed5746cd48b656a61d4a6ce66c3128cd6.tar.gz
collagen-7ed8d37ed5746cd48b656a61d4a6ce66c3128cd6.tar.bz2
collagen-7ed8d37ed5746cd48b656a61d4a6ce66c3128cd6.zip
Added checking for len of dep in create_dep_groups
fixing bug #16
Diffstat (limited to 'src')
-rw-r--r--src/tinderbox/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py
index 62aebbb..ab88c4e 100644
--- a/src/tinderbox/__init__.py
+++ b/src/tinderbox/__init__.py
@@ -345,14 +345,15 @@ class Tinderbox(object):
max_dep_versions = len(depversions)
for dep in deps_expanded:
- while len(dep) < max_dep_versions:
- print dep
+ while len(dep) != 0 and len(dep) < max_dep_versions:
dep.append(dep[0])
result = []
for i in range(max_dep_versions):
group = []
for dep in deps_expanded:
+ if 0 == len(dep):
+ continue
group.append(dep.pop())
result.append(group)
return result