]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Hash false success.. minor change in hash invalidation
authorChristian Rodriguez <christian.rodriguez@intel.com>
Tue, 16 Apr 2019 19:40:55 +0000 (03:40 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 22 Apr 2019 08:50:26 +0000 (16:50 +0800)
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1692

Change part of the hash error handling to invalidate hashes in the
cache destination not the cache source.

Signed-off-by: Christian Rodriguez <christian.rodriguez@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/build/build.py

index 71478b7268e364640ad43d3d8972c8540433ca7c..7271570d2956db80e50e6667b1aa2f6d0d6baf07 100644 (file)
@@ -1165,8 +1165,8 @@ class Build():
                     os.remove(ModuleHashFile)\r
 \r
             # Remove .hash file from cache\r
-            if GlobalData.gBinCacheSource:\r
-                FileDir = path.join(GlobalData.gBinCacheSource, moduleAutoGenObj.Arch, moduleAutoGenObj.SourceDir, moduleAutoGenObj.MetaFile.BaseName)\r
+            if GlobalData.gBinCacheDest:\r
+                FileDir = path.join(GlobalData.gBinCacheDest, moduleAutoGenObj.Arch, moduleAutoGenObj.SourceDir, moduleAutoGenObj.MetaFile.BaseName)\r
                 HashFile = path.join(FileDir, moduleAutoGenObj.Name + '.hash')\r
                 if os.path.exists(HashFile):\r
                     os.remove(HashFile)\r