Commit 06cbbf5a authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Drop trailing slashes from recipe URLs, as they get turned into e.g.

https://git.fmrib%2Ffsl%2Fconda%2f<recipename>%2F,  and gitlab returns a
404
parent a61b2426
...@@ -73,6 +73,7 @@ def get_recipe_urls(project_name, server) -> Dict[str, str]: ...@@ -73,6 +73,7 @@ def get_recipe_urls(project_name, server) -> Dict[str, str]:
recipes = [] recipes = []
for url in urls: for url in urls:
url = url.rstrip('/')
path = urlparse.urlparse(url).path.replace('.git', '')[1:] path = urlparse.urlparse(url).path.replace('.git', '')[1:]
name = path.rsplit('/', 1)[-1] name = path.rsplit('/', 1)[-1]
recipes.append({'url' : url, 'name' : name, 'path' : path}) recipes.append({'url' : url, 'name' : name, 'path' : path})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment