summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMikko Ylinen <mikko.ylinen@linux.intel.com>2017-07-03 14:49:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-06 14:38:14 +0100
commit26fc1f18a6e173f9bc9c56d5565c288fedbbf385 (patch)
tree7a91189b427919cc5dc75cedb63bf6ea8ad6a9de /meta/classes
parent2d8e3e91203af165f89c30fdf13b5bd28cd822ed (diff)
downloadpoky-26fc1f18a6e173f9bc9c56d5565c288fedbbf385.tar.gz
sanity.bbclass: fix AttributeError in mirror format checks
mirrors is a list after split() and results in: AttributeError: 'list' object has no attribute 'strip' when the 'mirror values are pairs' check fails. (From OE-Core rev: 2b7232f2913cc3c8463f136bad7dd06b690c5141) Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f629d2046d..b746b173b7 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -783,7 +783,7 @@ def check_sanity_everybuild(status, d):
783 783
784 # Split into pairs 784 # Split into pairs
785 if len(mirrors) % 2 != 0: 785 if len(mirrors) % 2 != 0:
786 bb.warn('Invalid mirror variable value for %s: %s, should contain paired members.' % (mirror_var, mirrors.strip())) 786 bb.warn('Invalid mirror variable value for %s: %s, should contain paired members.' % (mirror_var, str(mirrors)))
787 continue 787 continue
788 mirrors = list(zip(*[iter(mirrors)]*2)) 788 mirrors = list(zip(*[iter(mirrors)]*2))
789 789