From: Christopher Larson Date: Mon, 10 Jun 2013 20:46:39 +0000 (-0700) Subject: copyleft_compliance: handle localpaths ending with '/' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~37071 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f30d2eb2ef45550c71969c735275db1448b6ac6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git copyleft_compliance: handle localpaths ending with '/' Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass index 06b02278d3a..adb48bed3b1 100644 --- a/meta/classes/copyleft_compliance.bbclass +++ b/meta/classes/copyleft_compliance.bbclass @@ -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)