summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-11 14:13:33 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:32:56 +0000
commitd3c46b5d0abd56bcadd4f2f1ef985f13d67f605b (patch)
tree92fedeaa9b39d47f9d95d079b1f51c60631d86bb /scripts/lib
parent67ea9d21f20a371a0ee443b46326018cb1527b62 (diff)
downloadopenembedded-core-d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b.tar.gz
openembedded-core-d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b.tar.bz2
openembedded-core-d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b.zip
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 <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 1 insertions, 1 deletions
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)