]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
copyleft_compliance: handle localpaths ending with '/'
authorChristopher Larson <chris_larson@mentor.com>
Mon, 10 Jun 2013 20:46:39 +0000 (13:46 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Jun 2013 14:48:50 +0000 (15:48 +0100)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/copyleft_compliance.bbclass

index 06b02278d3a39e5e470853d14611ee1de3342b1e..adb48bed3b144aa1f3a8577aa49e2ef08f3f936a 100644 (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)