[oe-commits] org.oe.dev sanity.bbclass: Cope with empty abi files generated by previous issues
rpurdie commit
openembedded-commits at lists.openembedded.org
Sat Feb 23 19:56:35 UTC 2008
sanity.bbclass: Cope with empty abi files generated by previous issues
Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: 541070a08e3de6d0794e2b95cefda0658762a58b
ViewMTN: http://monotone.openembedded.org/revision/info/541070a08e3de6d0794e2b95cefda0658762a58b
Files:
1
classes/sanity.bbclass
Diffs:
#
# mt diff -rd4edfdc5d41bfdf331ec7bc23e996d430aae5ac7 -r541070a08e3de6d0794e2b95cefda0658762a58b
#
#
#
# patch "classes/sanity.bbclass"
# from [7c5340af69fe3211497c811df2af7c17db7e435a]
# to [2891c5197046f50c1ea83ee2502e4a49ae595aed]
#
============================================================
--- classes/sanity.bbclass 7c5340af69fe3211497c811df2af7c17db7e435a
+++ classes/sanity.bbclass 2891c5197046f50c1ea83ee2502e4a49ae595aed
@@ -137,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:
More information about the Openembedded-commits
mailing list