sanity: handle both \n and \\n in mirror vars

(From OE-Core rev: 3e203e91afa48557eb754dd554944012f7f0c0a2)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson
2014-08-25 15:57:42 -07:00
committed by Richard Purdie
parent 52b788c6df
commit d68255d14b

View File

@@ -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.