[oe-commits] Christopher Larson : copyleft_compliance: handle localpaths ending with '/'

git at git.openembedded.org git at git.openembedded.org
Wed Jun 12 12:19:46 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 1f30d2eb2ef45550c71969c735275db1448b6ac6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1f30d2eb2ef45550c71969c735275db1448b6ac6

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Mon Jun 10 13:46:39 2013 -0700

copyleft_compliance: handle localpaths ending with '/'

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/copyleft_compliance.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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)



More information about the Openembedded-commits mailing list