summaryrefslogtreecommitdiffstats
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
authorJian Liu <jian.liu@windriver.com>2014-08-20 16:15:00 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 09:31:41 +0100
commit181bcbe2c74abb220c08888ba5a8d3dbd6fbe155 (patch)
tree1b5e11b4ed56e554450d22555e0a25c97fbcf9bc /meta/classes/archiver.bbclass
parentcae5cf2d97fe4537f6c5ebed78fcce2839557403 (diff)
downloadpoky-181bcbe2c74abb220c08888ba5a8d3dbd6fbe155.tar.gz
archiver: 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. (From OE-Core rev: a539e823d002fefe129e3045f893d1237fadb87f) Signed-off-by: Jian Liu <jian.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index efd413bdc4..35e541194c 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -136,7 +136,7 @@ python do_ar_original() {
136 bb.note('Archiving the original source...') 136 bb.note('Archiving the original source...')
137 fetch = bb.fetch2.Fetch([], d) 137 fetch = bb.fetch2.Fetch([], d)
138 for url in fetch.urls: 138 for url in fetch.urls:
139 local = fetch.localpath(url) 139 local = fetch.localpath(url).rstrip("/");
140 if os.path.isfile(local): 140 if os.path.isfile(local):
141 shutil.copy(local, ar_outdir) 141 shutil.copy(local, ar_outdir)
142 elif os.path.isdir(local): 142 elif os.path.isdir(local):