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 authored and Richard Purdie committed 2014-08-27 12:12:29 +01:00
1 parent 52b788c6df
commit d68255d14b
1 file changed
+1 -1
+1 -1
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.