[oe-commits] Jian Liu : delete the tail slash in directory name

git at git.openembedded.org git at git.openembedded.org
Wed Aug 20 13:57:38 UTC 2014


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

Author: Jian Liu <jian.liu at windriver.com>
Date:   Wed Aug 20 16:15:00 2014 +0800

delete the tail slash in directory name

If directory names in SRC_URI ended with "/", function
do_ar_original() in layers/oe-core/meta/classes/archiver.bbclass
will generate a tar file whose name is ".tar.gz".
So delete the "/" at the tail of the directory names before use the names.

Signed-off-by: Jian Liu <jian.liu at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/archiver.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index efd413b..35e5411 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -136,7 +136,7 @@ python do_ar_original() {
     bb.note('Archiving the original source...')
     fetch = bb.fetch2.Fetch([], d)
     for url in fetch.urls:
-        local = fetch.localpath(url)
+        local = fetch.localpath(url).rstrip("/");
         if os.path.isfile(local):
             shutil.copy(local, ar_outdir)
         elif os.path.isdir(local):



More information about the Openembedded-commits mailing list