sanity: refactor mirrors checks to be more pythonic
authorChristopher Larson <chris_larson@mentor.com>
Mon, 25 Aug 2014 22:57:44 +0000 (15:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Aug 2014 11:12:29 +0000 (12:12 +0100)
commit040286258781f62cd34e3d09bd63d65db8f37d0e
treed3d70ba8becd7ccbfcea5c5b9a2cb9299ffde514
parent1bfac9b4671d54b0f0a625fccfa5534ab1bc86d9
sanity: refactor mirrors checks to be more pythonic

- Use clearer variable names
- Use variable unpacking to reference elements by name rather than index
- Sacrifice a small amount of time (iterate over protocols twice per entry
  rather than once) for clarity: use readable generator expressions with any()
  rather than maintaining state.

(From OE-Core rev: 9d31e1e6ce07991fe360e67295311e62a55603af)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass