[1/2] copyleft_compliance: handle localpaths ending with '/'

Submitted by Christopher Larson on June 10, 2013, 8:46 p.m.

Details

Message ID 5ae1d98ddbd9e3f573cb2a0cf8e8bc6a86385ca9.1370896976.git.chris_larson@mentor.com
State Accepted
Commit 1f30d2eb2ef45550c71969c735275db1448b6ac6
Headers show

Commit Message

Christopher Larson June 10, 2013, 8:46 p.m.
From: Christopher Larson <chris_larson@mentor.com>

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/copyleft_compliance.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index 06b0227..adb48be 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)