From: Jian Liu Date: Wed, 20 Aug 2014 08:15:00 +0000 (+0800) Subject: archiver: delete the tail slash in directory name X-Git-Tag: 2015-4~1835 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a539e823d002fefe129e3045f893d1237fadb87f;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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):