CacheDir.py (SCons-4.3.0) | : | CacheDir.py (SCons-4.4.0) | ||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
else: | else: | |||
cd.copy_to_cache(env, t.get_internal_path(), tempfile) | cd.copy_to_cache(env, t.get_internal_path(), tempfile) | |||
fs.rename(tempfile, cachefile) | fs.rename(tempfile, cachefile) | |||
except EnvironmentError: | except EnvironmentError: | |||
# It's possible someone else tried writing the file at the | # It's possible someone else tried writing the file at the | |||
# same time we did, or else that there was some problem like | # same time we did, or else that there was some problem like | |||
# the CacheDir being on a separate file system that's full. | # the CacheDir being on a separate file system that's full. | |||
# In any case, inability to push a file to cache doesn't affect | # In any case, inability to push a file to cache doesn't affect | |||
# the correctness of the build, so just print a warning. | # the correctness of the build, so just print a warning. | |||
msg = errfmt % (str(target), cachefile) | msg = errfmt % (str(t), cachefile) | |||
cd.CacheDebug(errfmt + '\n', str(t), cachefile) | ||||
SCons.Warnings.warn(SCons.Warnings.CacheWriteErrorWarning, msg) | SCons.Warnings.warn(SCons.Warnings.CacheWriteErrorWarning, msg) | |||
CachePush = SCons.Action.Action(CachePushFunc, None) | CachePush = SCons.Action.Action(CachePushFunc, None) | |||
class CacheDir: | class CacheDir: | |||
def __init__(self, path): | def __init__(self, path): | |||
""" | """ | |||
Initialize a CacheDir object. | Initialize a CacheDir object. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |