summaryrefslogtreecommitdiffstats
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
parentf4eed2b8b87f8b705c3f3a55665a2069dced31cf (diff)
downloadpoky-d220e071abfe33fa43d1cbe67b0ec5764364b284.tar.gz
poky-d220e071abfe33fa43d1cbe67b0ec5764364b284.tar.bz2
poky-d220e071abfe33fa43d1cbe67b0ec5764364b284.zip
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>
-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):
finally:
f.close()
elif os.path.exists("/etc/SuSE-release"):
+ import re
f = open("/etc/SuSE-release", "r")
try:
distro = f.readline()