copyleft_compliance: handle localpaths ending with '/'

(From OE-Core rev: 1f30d2eb2ef45550c71969c735275db1448b6ac6)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson 2013-06-10 13:46:39 -07:00 committed by Richard Purdie
parent 9dba0ebb7b
commit 29f8701402
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ python do_prepare_copyleft_sources () {
local = os.path.normpath(fetch.localpath(u.url))
if local.endswith('.bb'):
continue
elif local.endswith('/'):
local = local[:-1]
if u.mirrortarball:
tarball_path = os.path.join(dl_dir, u.mirrortarball)