All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christopher Larson <kergoth@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Christopher Larson <chris_larson@mentor.com>
Subject: [PATCH 1/3] sanity: handle both \n and \n in mirror vars
Date: Mon, 25 Aug 2014 15:46:56 -0700	[thread overview]
Message-ID: <ef9b349c3b2f16c96a386054212baebdd9722c1b.1409006757.git.chris_larson@mentor.com> (raw)
In-Reply-To: <cover.1409006757.git.chris_larson@mentor.com>
In-Reply-To: <cover.1409006757.git.chris_larson@mentor.com>

From: Christopher Larson <chris_larson@mentor.com>

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index dbcc26b..7cfc4be 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -759,7 +759,7 @@ def check_sanity_everybuild(status, d):
         'git://', 'gitsm://', 'hg://', 'osc://', 'p4://', 'svk://', 'svn://', \
         'bzr://', 'cvs://']
     for mir_type in mir_types:
-        mirros = (d.getVar(mir_type, True) or '').split('\\n')
+        mirros = (d.getVar(mir_type, True) or '').replace('\\n', '\n').split('\n')
         for mir in mirros:
             mir_list = mir.split()
             # Should be two members.
-- 
1.8.3.4



  reply	other threads:[~2014-08-25 22:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25 22:46 [PATCH 0/3] sanity: improve mirrors check Christopher Larson
2014-08-25 22:46 ` Christopher Larson [this message]
2014-08-25 22:50   ` [PATCH 1/3] sanity: handle both \n and \n in mirror vars Christopher Larson
2014-08-25 22:46 ` [PATCH 2/3] sanity: fix support for regex schemes in mirrors check Christopher Larson
2014-08-25 22:46 ` [PATCH 3/3] sanity: refactor mirrors checks to be more pythonic Christopher Larson
2014-08-25 22:57 ` [PATCHv2 0/3] sanity: improve mirrors check Christopher Larson
2014-08-25 22:57   ` [PATCHv2 1/3] sanity: handle both \n and \\n in mirror vars Christopher Larson
2014-08-26 10:51     ` Martin Jansa
2014-08-26 10:59       ` Martin Jansa
2014-08-27 11:50     ` Koen Kooi
2014-08-25 22:57   ` [PATCHv2 2/3] sanity: fix support for regex schemes in mirrors check Christopher Larson
2014-08-25 22:57   ` [PATCHv2 3/3] sanity: refactor mirrors checks to be more pythonic Christopher Larson

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=ef9b349c3b2f16c96a386054212baebdd9722c1b.1409006757.git.chris_larson@mentor.com \
    --to=kergoth@gmail.com \
    --cc=chris_larson@mentor.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.