[OE-core] [PATCH] archiver: delete the tail slash in directory name

Liu Jian jian.liu at windriver.com
Thu Jul 24 05:37:29 UTC 2014


From: Jian Liu <jian.liu at windriver.com>

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: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/archiver.bbclass | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 70ffda5..a95b516 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -149,6 +149,7 @@ python do_ar_original() {
fetch = bb.fetch2.Fetch([], d)
for url in fetch.urls:
local = fetch.localpath(url)
+ local = local.rstrip("/")
if os.path.isfile(local):
shutil.copy(local, ar_outdir)
elif os.path.isdir(local):
-- 
1.8.5.2.233.g932f7e4

-- 
Jian Liu
Email: jian.liu at windriver.com
Office Phone: 86-10-84778539




More information about the Openembedded-core mailing list