summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-23 01:00:00 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:33 +0000
commit10c8d14d1ae1ae57367e993576c82a0b4cd4938e (patch)
tree7f521a28aaf5d3f7cf04fe8f575e5bd64cff74f3 /scripts
parentb307e0a604cf1a8224a7b17f78ea2acc19d98fe2 (diff)
downloadpoky-10c8d14d1ae1ae57367e993576c82a0b4cd4938e.tar.gz
recipetool: create: fix extraction of name from URLs ending in /
If the URL ends in a / then we want to strip that off the path we split out of the URL before calling os.path.basename() on it. (From OE-Core rev: 308189beda8a31541481d09e3d5e86187e843d8d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 5caf3741b8..f0bb58e4bd 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -432,7 +432,7 @@ def create_recipe(args):
432 if srcuri and not realpv or not pn: 432 if srcuri and not realpv or not pn:
433 parseres = urlparse.urlparse(srcuri) 433 parseres = urlparse.urlparse(srcuri)
434 if parseres.path: 434 if parseres.path:
435 srcfile = os.path.basename(parseres.path) 435 srcfile = os.path.basename(parseres.path.rstrip('/'))
436 name_pn, name_pv = determine_from_filename(srcfile) 436 name_pn, name_pv = determine_from_filename(srcfile)
437 logger.debug('Determined from filename: name = "%s", version = "%s"' % (name_pn, name_pv)) 437 logger.debug('Determined from filename: name = "%s", version = "%s"' % (name_pn, name_pv))
438 if name_pn and not pn: 438 if name_pn and not pn: