diff options
Diffstat (limited to 'meta')
-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 4d4abd3ea5..3ec449c746 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -120,7 +120,7 @@ def check_supported_distro(e): | |||
120 | if os.path.exists("/etc/redhat-release"): | 120 | if os.path.exists("/etc/redhat-release"): |
121 | f = open("/etc/redhat-release", "r") | 121 | f = open("/etc/redhat-release", "r") |
122 | try: | 122 | try: |
123 | distro = f.readline() | 123 | distro = f.readline().strip() |
124 | finally: | 124 | finally: |
125 | f.close() | 125 | f.close() |
126 | elif os.path.exists("/etc/SuSE-release"): | 126 | elif os.path.exists("/etc/SuSE-release"): |