[Scons-users] Handling of links in the cache

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Wed Oct 26 06:54:52 EDT 2016


I was looking at the code in CacheDir.py and there's this round about line 60

     if SCons.Action.execute_actions:
         if fs.islink(cachefile):
             fs.symlink(fs.readlink(cachefile), t.get_internal_path())
         else:
             env.copy_from_cache(cachefile, t.get_internal_path())
         st = fs.stat(cachefile)
         fs.chmod(t.get_internal_path(), stat.S_IMODE(st[stat.ST_MODE]) | stat.S_IWRITE)
     return 0

If the cache file is a soft link - won't that attempt to make the target of the link writeable? Which is probably not a very friendly thing to do if your target is outside your build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20161026/b3762f8d/attachment.html>


More information about the Scons-users mailing list