summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-02-25 00:56:11 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-02-25 00:56:11 +0000
commita5a529f7e8855b28ac80a0854ebde5efd13afe6d (patch)
tree85b30a460d2d2f73c944cd71bfaae0bdd74be24f /classes/sanity.bbclass
parent89edf25da6cbf515358aaa5fd64987d2a04bbc4f (diff)
parent626030cab71d4fd02092e25aeff27f2b87d3e257 (diff)
merge of '7460b51ee9cc9d17b403416ed3a84895ac86e667'
and 'cad8e5a9c094705cd6895a456eac5da6d41967bb'
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass19
1 files changed, 4 insertions, 15 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 9ef2f09fe0..44c74a0354 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -2,15 +2,6 @@
# Sanity check the users setup for common misconfigurations
#
-#
-# SANITY_ABI allows us to notify users when the format of TMPDIR changes in
-# an incompatible way. Such changes should usually be detailed in the commit
-# that breaks the format and have been previously discussed on the mailing list
-# with general agreement from the core team.
-#
-SANITY_ABI = "0"
-SANITY_ABIFILE = "${TMPDIR}/abi_version"
-
def raise_sanity_error(msg):
import bb
bb.fatal(""" Openembedded's config sanity checker detected a potential misconfiguration.
@@ -146,7 +137,10 @@ def check_sanity(e):
if os.path.exists(abifile):
f = file(abifile, "r")
abi = f.read().strip()
- if (abi != current_abi):
+ if not abi.isdigit():
+ f = file(abifile, "w")
+ f.write(current_abi)
+ elif (abi != current_abi):
# Code to convert from one ABI to another could go here if possible.
messages = messages + "Error, TMPDIR has changed ABI (%s to %s) and you need to either rebuild, revert or adjust it at your own risk.\n" % (abi, current_abi)
else:
@@ -162,11 +156,6 @@ python check_sanity_eventhandler() {
from bb import note, error, data, __version__
from bb.event import getName
- try:
- from distutils.version import LooseVersion
- except ImportError:
- def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
-
if getName(e) == "ConfigParsed":
check_sanity(e)