diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-04-18 10:56:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-18 11:56:48 +0100 |
commit | cb1f7cffc171e6b182f33a69ff688d76b7f1baed (patch) | |
tree | 75ad11de522e278ed406bee66a799488baf8c61e | |
parent | bea0311a6478febe8ab4884fb1c479f610856534 (diff) | |
download | openembedded-core-cb1f7cffc171e6b182f33a69ff688d76b7f1baed.tar.gz openembedded-core-cb1f7cffc171e6b182f33a69ff688d76b7f1baed.tar.bz2 openembedded-core-cb1f7cffc171e6b182f33a69ff688d76b7f1baed.tar.xz openembedded-core-cb1f7cffc171e6b182f33a69ff688d76b7f1baed.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).
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.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 3ec449c74..9cd04c42b 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() |