summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorSam Kleinman <samk@10gen.com>2016-07-28 15:09:00 -0400
committerSam Kleinman <samk@10gen.com>2016-08-01 16:38:39 -0400
commitbc7e4e6821639ee766ada83483975668af98f367 (patch)
tree80bd007f1a9ab04a4358571110413ab34e10aedd /src/third_party
parent3f68c01861b33b76965d39ba5bcbd84e2851afe3 (diff)
downloadmongo-bc7e4e6821639ee766ada83483975668af98f367.tar.gz
SERVER-25171: add scons cache support and enable on relevant non-push variants
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py b/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py
index 05199d93144..a5b85a01fb8 100644
--- a/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py
+++ b/src/third_party/scons-2.5.0/scons-local-2.5.0/SCons/CacheDir.py
@@ -52,9 +52,12 @@ def CacheRetrieveFunc(target, source, env):
cd.CacheDebug('CacheRetrieve(%s): retrieving from %s\n', t, cachefile)
if SCons.Action.execute_actions:
if fs.islink(cachefile):
- fs.symlink(fs.readlink(cachefile), t.get_internal_path())
+ realpath = fs.readlink(cachefile)
+ fs.symlink(realpath, t.get_internal_path())
+ os.utime(realpath, None)
else:
env.copy_from_cache(cachefile, t.get_internal_path())
+ os.utime(cachefile, None)
st = fs.stat(cachefile)
fs.chmod(t.get_internal_path(), stat.S_IMODE(st[stat.ST_MODE]) | stat.S_IWRITE)
return 0