mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
86f3464b47
commit
4c71afb378
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user