* [PATCH] archiver: delete the tail slash in directory name
@ 2014-07-24 5:37 Liu Jian
2014-07-24 15:25 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Liu Jian @ 2014-07-24 5:37 UTC (permalink / raw)
To: openembedded-core
From: Jian Liu <jian.liu@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@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@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@windriver.com
Office Phone: 86-10-84778539
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] archiver: delete the tail slash in directory name
2014-07-24 5:37 [PATCH] archiver: delete the tail slash in directory name Liu Jian
@ 2014-07-24 15:25 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2014-07-24 15:25 UTC (permalink / raw)
To: Liu Jian; +Cc: Patches and discussions about the oe-core layer
On Wed, Jul 23, 2014 at 10:37 PM, Liu Jian <jian.liu@windriver.com> wrote:
> local = fetch.localpath(url)
> + local = local.rstrip("/")
may be you could just do local = fetch.localpath(url).rstrip("/") in
the same line
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-24 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 5:37 [PATCH] archiver: delete the tail slash in directory name Liu Jian
2014-07-24 15:25 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox