From d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 11 Feb 2016 14:13:33 +1300 Subject: recipetool: create: ensure URL parameters don't make it into the name When auto-detecting the name for a recipe from the URL, strip off any parameters (";name=value...") before parsing the URL, otherwise this just ends up in the recipe name which is undesirable. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- scripts/lib/recipetool/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index ee27f8de85..f6d75150bf 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -251,7 +251,7 @@ def determine_from_url(srcuri): """Determine name and version from a URL""" pn = None pv = None - parseres = urlparse.urlparse(srcuri.lower()) + parseres = urlparse.urlparse(srcuri.lower().split(';', 1)[0]) if parseres.path: if 'github.com' in parseres.netloc: res = re.search(r'.*/(.*?)/archive/(.*)-final\.(tar|zip)', parseres.path) -- cgit 1.2.3-korg