]> git.openpandora.org Git - openembedded.git/commitdiff
sanity.bbclass: Cope with empty abi files generated by previous issues
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 23 Feb 2008 19:17:11 +0000 (19:17 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sat, 23 Feb 2008 19:17:11 +0000 (19:17 +0000)
classes/sanity.bbclass

index f0ffa5c31a23d528860d9bd7a9ef2d1a066bdf24..44c74a035498dda339fcf69ce41c74cf97b2dced 100644 (file)
@@ -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: