diff options
-rw-r--r-- | scripts/lib/recipetool/create.py | 2 |
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: |