summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-04-18 10:56:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-18 11:56:39 +0100
commitbea0311a6478febe8ab4884fb1c479f610856534 (patch)
tree1df2896d64fbc0a4aa399ec90e8f5f35cbfb7e99 /meta/classes
parent973351cf2e338f07c11395d494193e9c62857f2d (diff)
downloadopenembedded-core-bea0311a6478febe8ab4884fb1c479f610856534.tar.gz
openembedded-core-bea0311a6478febe8ab4884fb1c479f610856534.tar.bz2
openembedded-core-bea0311a6478febe8ab4884fb1c479f610856534.tar.xz
openembedded-core-bea0311a6478febe8ab4884fb1c479f610856534.zip
classes/sanity: trim trailing newline when reading /etc/redhat-release
Any trailing whitespace needs to be stripped before comparing it to the SANITY_TESTED_DISTROS list. 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.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 4d4abd3ea..3ec449c74 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -120,7 +120,7 @@ def check_supported_distro(e):
if os.path.exists("/etc/redhat-release"):
f = open("/etc/redhat-release", "r")
try:
- distro = f.readline()
+ distro = f.readline().strip()
finally:
f.close()
elif os.path.exists("/etc/SuSE-release"):