changeset 16:b12fc631a637

Always use unsafe name from Requirement
author Cédric Krier <ced@b2ck.com>
date Tue, 24 Feb 2015 00:50:08 +0100
parents 2a22b994aca4
children 77bacffd4117
files farmhouse.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/farmhouse.py	Tue Feb 24 00:20:11 2015 +0100
+++ b/farmhouse.py	Tue Feb 24 00:50:08 2015 +0100
@@ -110,8 +110,8 @@
     releases = []
     requirements = [get_requirement(p) for p in packages]
     predicates = [get_predicate(p) for p in packages]
-    all_versions = get_versions((p.project_name for p in requirements))
-    all_urls = get_urls(((r.project_name, v)
+    all_versions = get_versions((p.unsafe_name for p in requirements))
+    all_urls = get_urls(((r.unsafe_name, v)
             for r, p, versions in zip(requirements, predicates, all_versions)
             for v in versions))
     for requirement, predicate, versions in zip(
@@ -121,7 +121,7 @@
                 continue
             for url in urls:
                 releases.append(
-                    Release(requirement.project_name, version, url))
+                    Release(requirement.unsafe_name, version, url))
     context = {}
     if not title:
         title = '; '.join(packages)