summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-04-18 10:56:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-18 11:57:30 +0100
commitd220e071abfe33fa43d1cbe67b0ec5764364b284 (patch)
tree2dadac7e29a6e44c6bd9ad4ff5a12c55499e5cb4 /meta/classes
parentf4eed2b8b87f8b705c3f3a55665a2069dced31cf (diff)
downloadpoky-d220e071abfe33fa43d1cbe67b0ec5764364b284.tar.gz
classes/sanity: import regular expression module in SuSE distro check
We call re.sub here, so we need to "import re" or an error occurs (tested on OpenSuSE 12.1). (From OE-Core rev: cb1f7cffc171e6b182f33a69ff688d76b7f1baed) 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.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3ec449c746..9cd04c42bc 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -124,6 +124,7 @@ def check_supported_distro(e):
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"):
127 import re
127 f = open("/etc/SuSE-release", "r") 128 f = open("/etc/SuSE-release", "r")
128 try: 129 try:
129 distro = f.readline() 130 distro = f.readline()