[oe-commits] Phil Blundell : sanity: correct misleading message about location of TMPDIR
git version control
git at git.openembedded.org
Tue Feb 9 11:34:13 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 17c810af40dfbf084ef87c9b2a92874af43a6fe7
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=17c810af40dfbf084ef87c9b2a92874af43a6fe7
Author: Phil Blundell <philb at gnu.org>
Date: Tue Feb 9 11:33:09 2010 +0000
sanity: correct misleading message about location of TMPDIR
There is no point in telling users to move TMPDIR "back" to its current location :-}
---
classes/sanity.bbclass | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index f57d8e4..b66c9a9 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -135,8 +135,9 @@ 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):
- messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % tmpdir
+ oldpath = f.read().strip()
+ if (oldpath != tmpdir):
+ messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % oldpath
else:
import bb
bb.mkdirhier(tmpdir)
More information about the Openembedded-commits
mailing list