diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-09-01 12:36:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-02 18:36:20 +0100 |
commit | de5d52711bd810a63a0ad5260b799d6672952c32 (patch) | |
tree | 4255f9b43f706a98d9f481ed70e994139d846bce /meta/classes | |
parent | 050e43a57fc06fcb352adef7e24765106a995e5c (diff) | |
download | poky-de5d52711bd810a63a0ad5260b799d6672952c32.tar.gz |
sanity.bbclass: fix splitting on newlines of SANITY_TESTED_DISTROS
This variable should be split with \n sequences and these need to be
specified literally in the string. A corrected version of the example
given in the original commit (OE-core rev
75e3875341ddc8940e9ee2ccbbb2ec18194a68e6):
SANITY_TESTED_DISTROS = " \
Ubuntu 11.04 \n \
Fedora release 14 (Laughlin) \n \
"
(From OE-Core rev: cfc72d5796b6f83a01e06f3a1f044869db2d5d18)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 37b90289f5..44b06880ad 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -149,7 +149,7 @@ def check_supported_distro(e): | |||
149 | finally: | 149 | finally: |
150 | f.close() | 150 | f.close() |
151 | if distro: | 151 | if distro: |
152 | if distro not in [x.strip() for x in tested_distros.split('\n')]: | 152 | if distro not in [x.strip() for x in tested_distros.split('\\n')]: |
153 | bb.warn('Host distribution "%s" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.' % distro) | 153 | bb.warn('Host distribution "%s" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.' % distro) |
154 | else: | 154 | else: |
155 | bb.warn('Host distribution could not be determined; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.') | 155 | bb.warn('Host distribution could not be determined; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.') |