Patchwork [1/3] sanity: handle both \n and \n in mirror vars

login
register
mail settings
Submitter Christopher Larson
Date Aug. 25, 2014, 10:46 p.m.
Message ID <ef9b349c3b2f16c96a386054212baebdd9722c1b.1409006757.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/78925/
State Accepted
Commit d68255d14bfa43bfa35c724631ab844a141e300e
Headers show

Comments

Christopher Larson - Aug. 25, 2014, 10:46 p.m.
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(-)
Christopher Larson - Aug. 25, 2014, 10:50 p.m.
On Mon, Aug 25, 2014 at 3:46 PM, Christopher Larson <kergoth@gmail.com>
wrote:

> From: Christopher Larson <chris_larson@mentor.com>
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
>


Bah, typo in the subject, fixing. :)

-Chris

Patch

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.