summaryrefslogtreecommitdiffstats
path: root/SCons/Node
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2021-02-24 20:01:23 (GMT)
committerDaniel Moody <daniel.moody@mongodb.com>2021-04-01 16:50:41 (GMT)
commitd5ef9051c490ffc401bcdbf6227036ca568bf290 (patch)
tree6c1cdf606738c82c260e0ce652f42cec14526fbf /SCons/Node
parentb7477f0274bfad9ed8e8b98c328ab4263f6bfb62 (diff)
downloadSCons-d5ef9051c490ffc401bcdbf6227036ca568bf290.zip
SCons-d5ef9051c490ffc401bcdbf6227036ca568bf290.tar.gz
SCons-d5ef9051c490ffc401bcdbf6227036ca568bf290.tar.bz2
Added support for passing custom CacheDir classes.
Diffstat (limited to 'SCons/Node')
-rw-r--r--SCons/Node/FS.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/SCons/Node/FS.py b/SCons/Node/FS.py
index 6a47dab..2773960 100644
--- a/SCons/Node/FS.py
+++ b/SCons/Node/FS.py
@@ -990,7 +990,7 @@ class Entry(Base):
def disambiguate(self, must_exist=None):
"""
- """
+ """
if self.isfile():
self.__class__ = File
self._morph()
@@ -3621,9 +3621,10 @@ class File(Base):
except AttributeError:
pass
- cachedir, cachefile = self.get_build_env().get_CacheDir().cachepath(self)
+ cache = self.get_build_env().get_CacheDir()
+ cachedir, cachefile = cache.cachepath(self)
if not self.exists() and cachefile and os.path.exists(cachefile):
- self.cachedir_csig = hash_file_signature(cachefile, File.hash_chunksize)
+ self.cachedir_csig = cache.get_cachedir_csig(self)
else:
self.cachedir_csig = self.get_csig()
return self.cachedir_csig