All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liu Jian <jian.liu@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH] archiver: delete the tail slash in directory name
Date: Thu, 24 Jul 2014 13:37:29 +0800	[thread overview]
Message-ID: <53D09B99.2030301@windriver.com> (raw)

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



             reply	other threads:[~2014-07-24  5:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24  5:37 Liu Jian [this message]
2014-07-24 15:25 ` [PATCH] archiver: delete the tail slash in directory name Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53D09B99.2030301@windriver.com \
    --to=jian.liu@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.