summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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)