changeset 18:eb7646550417

Fix iteration over all urls
author Cédric Krier <ced@b2ck.com>
date Tue, 24 Feb 2015 01:13:47 +0100
parents 77bacffd4117
children f5555074f192
files farmhouse.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/farmhouse.py	Tue Feb 24 00:59:35 2015 +0100
+++ b/farmhouse.py	Tue Feb 24 01:13:47 2015 +0100
@@ -114,9 +114,10 @@
     all_urls = get_urls(((r.unsafe_name, v)
             for r, p, versions in zip(requirements, predicates, all_versions)
             for v in versions))
+    iter_urls = iter(all_urls)
     for requirement, predicate, versions in zip(
             requirements, predicates, all_versions):
-        for version, urls in zip(versions, all_urls):
+        for version, urls in zip(versions, iter_urls):
             if not predicate.satisfied_by(version):
                 continue
             for url in urls: