diff options
author | Jian Liu <jian.liu@windriver.com> | 2014-08-20 16:15:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 09:29:49 +0100 |
commit | a539e823d002fefe129e3045f893d1237fadb87f (patch) | |
tree | d7c592ecaccb1dd20202e7e3ed00d93cf6fe2ba1 /meta/classes/archiver.bbclass | |
parent | e9d1264a63f47965c2f10e18e532b117bbda26be (diff) | |
download | openembedded-core-a539e823d002fefe129e3045f893d1237fadb87f.tar.gz openembedded-core-a539e823d002fefe129e3045f893d1237fadb87f.tar.bz2 openembedded-core-a539e823d002fefe129e3045f893d1237fadb87f.zip |
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.
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.bbclass | 2 |
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() { 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): |