]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Really fix TMPDIR change warning message
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 28 May 2009 20:32:30 +0000 (21:32 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 28 May 2009 20:32:30 +0000 (21:32 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/sanity.bbclass

index 75bb1a99c18d998b265019cc5670bf0f7f1c76e6..5cf067795738eddc39a70ffd320bafb74cd081d8 100644 (file)
@@ -131,7 +131,8 @@ def check_sanity(e):
        checkfile = os.path.join(tmpdir, "saved_tmpdir")
        if os.path.exists(checkfile):
                f = file(checkfile, "r")
-               if (f.read().strip() != tmpdir):
+               saved_tmpdir = f.read().strip()
+               if (saved_tmpdir != tmpdir):
                        messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
        else:
                f = file(checkfile, "w")