mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -136,7 +136,7 @@ python do_ar_original() {
|
|||||||
bb.note('Archiving the original source...')
|
bb.note('Archiving the original source...')
|
||||||
fetch = bb.fetch2.Fetch([], d)
|
fetch = bb.fetch2.Fetch([], d)
|
||||||
for url in fetch.urls:
|
for url in fetch.urls:
|
||||||
local = fetch.localpath(url)
|
local = fetch.localpath(url).rstrip("/");
|
||||||
if os.path.isfile(local):
|
if os.path.isfile(local):
|
||||||
shutil.copy(local, ar_outdir)
|
shutil.copy(local, ar_outdir)
|
||||||
elif os.path.isdir(local):
|
elif os.path.isdir(local):
|
||||||
|
|||||||
Reference in New Issue
Block a user