From d8d0d0151a9befbadbfcf9faef0d280e60ca1def Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 25 Oct 2017 15:23:57 -0500 Subject: [PATCH] Format expected names correctly for wheel checks Wheel names use underscores, preventing project name matches. Change-Id: I99d59a064d948b281e4bc27b48912b2e250f4b39 --- openstack_releases/links.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openstack_releases/links.py b/openstack_releases/links.py index 73dddfd3c0..1571fc15d1 100644 --- a/openstack_releases/links.py +++ b/openstack_releases/links.py @@ -13,6 +13,7 @@ # under the License. import requests +import wheel.bdist_wheel def link_exists(url): @@ -49,7 +50,7 @@ def wheel_py2_url(version, project): s='https://tarballs.openstack.org', v=version, r=repo_base, - n=base, + n=wheel.bdist_wheel.safer_name(base), ) @@ -60,7 +61,7 @@ def wheel_both_url(version, project): s='https://tarballs.openstack.org', v=version, r=repo_base, - n=base, + n=wheel.bdist_wheel.safer_name(base), )