From: Richard Purdie Date: Thu, 28 May 2009 20:32:30 +0000 (+0100) Subject: sanity.bbclass: Really fix TMPDIR change warning message X-Git-Tag: 2011-1~7396 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f2a9705633cc0ccf3c06b9ada67f57b7a3ea0614;p=openembedded-core.git sanity.bbclass: Really fix TMPDIR change warning message Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 75bb1a99c1..5cf0677957 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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")