diff options
author | Richard Purdie <richard@openedhand.com> | 2006-05-27 21:49:50 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-05-27 21:49:50 +0000 |
commit | 3097ab0f62233dc336dfe611fef4b8b633355190 (patch) | |
tree | 8173abc003c9703cf625d4e100f57d3d5141177d /openembedded/classes/sanity.bbclass | |
parent | b77fcc05cacdf70819cc226d53156a9e70e84e04 (diff) | |
download | openembedded-core-3097ab0f62233dc336dfe611fef4b8b633355190.tar.gz openembedded-core-3097ab0f62233dc336dfe611fef4b8b633355190.tar.bz2 openembedded-core-3097ab0f62233dc336dfe611fef4b8b633355190.tar.xz openembedded-core-3097ab0f62233dc336dfe611fef4b8b633355190.zip |
Sync conf and classes with OE - changes have been tested and don't affect poky
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@446 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/sanity.bbclass')
-rw-r--r-- | openembedded/classes/sanity.bbclass | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/openembedded/classes/sanity.bbclass b/openembedded/classes/sanity.bbclass index 8253b2793..a626162ff 100644 --- a/openembedded/classes/sanity.bbclass +++ b/openembedded/classes/sanity.bbclass @@ -4,7 +4,11 @@ def raise_sanity_error(msg): import bb - bb.fatal("Openembedded's config sanity checker detected a potential misconfiguration.\nEither fix the cause of this error or at your own risk disable the checker (see sanity.conf).\n%s" % msg) + bb.fatal(""" Openembedded's config sanity checker detected a potential misconfiguration. + Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). + Following is the list of potential problems / advisories: + + %s""" % msg) def check_conf_exists(fn, data): import bb, os @@ -31,7 +35,10 @@ def check_app_exists(app, d): def check_sanity(e): from bb import note, error, data, __version__ from bb.event import Handled, NotHandled, getName - from distutils.version import LooseVersion + try: + from distutils.version import LooseVersion + except ImportError: + def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1 import os # Check the bitbake version meets minimum requirements @@ -83,6 +90,12 @@ def check_sanity(e): if not check_app_exists('texi2html', e.data): raise_sanity_error('Please install the texi2html binary') + if not check_app_exists('cvs', e.data): + raise_sanity_error('Please install the cvs utility') + + if not check_app_exists('svn', e.data): + raise_sanity_error('Please install the svn utility') + oes_bb_conf = data.getVar( 'OES_BITBAKE_CONF', e.data, True ) if not oes_bb_conf: raise_sanity_error('You do not include OpenEmbeddeds version of conf/bitbake.conf') |