diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-02-23 19:17:11 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-02-23 19:17:11 +0000 |
commit | bbaf9d820b71fa259dc9c5ca28c059108d8f8203 (patch) | |
tree | 0a35c10bd91f91e97e98ccc7361bc3ba4a6bba8b /classes | |
parent | 7113c8cffa6f3beb4747255115efb05e22828239 (diff) |
sanity.bbclass: Cope with empty abi files generated by previous issues
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanity.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index f0ffa5c31a..44c74a0354 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -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: |