summaryrefslogtreecommitdiffstats
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:33:03 +0000
commit4c71afb3784e4ff9656f909af2f11def9b725f55 (patch)
tree80c39415c1501463f1f2cba64e402a22fdd1a33c /scripts/lib
parent86f3464b47ec2e2b3a3c9e9932edc864f3ceaf99 (diff)
downloadpoky-4c71afb3784e4ff9656f909af2f11def9b725f55.tar.gz
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. (From OE-Core rev: d3c46b5d0abd56bcadd4f2f1ef985f13d67f605b) 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):
251 """Determine name and version from a URL""" 251 """Determine name and version from a URL"""
252 pn = None 252 pn = None
253 pv = None 253 pv = None
254 parseres = urlparse.urlparse(srcuri.lower()) 254 parseres = urlparse.urlparse(srcuri.lower().split(';', 1)[0])
255 if parseres.path: 255 if parseres.path:
256 if 'github.com' in parseres.netloc: 256 if 'github.com' in parseres.netloc:
257 res = re.search(r'.*/(.*?)/archive/(.*)-final\.(tar|zip)', parseres.path) 257 res = re.search(r'.*/(.*?)/archive/(.*)-final\.(tar|zip)', parseres.path)