From 9053bc517ea77b9780830bf08b966979eff1cb0f Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 28 Jun 2010 09:33:10 +0000 Subject: Sync EDKII BaseTools to BaseTools project r1988 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10607 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'BaseTools/Source/Python/Workspace/WorkspaceDatabase.py') diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py index 12c3324b8d..3aabd545d5 100644 --- a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py +++ b/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py @@ -2287,6 +2287,13 @@ determine whether database file is out of date!\n") Result = self.Cur.execute("select min(ID) from %s" % (TableName)).fetchall() if Result[0][0] != -1: return False + # + # Check whether the meta data file has external dependency by comparing the time stamp + # + Sql = "select Value1, Value2 from %s where Model=%d" % (TableName, MODEL_EXTERNAL_DEPENDENCY) + for Dependency in self.Cur.execute(Sql).fetchall(): + if str(os.stat(Dependency[0])[8]) != Dependency[1]: + return False except: return False return True -- cgit v1.2.3