[ET Trac] [Einstein Toolkit] #139: Existing symbolic links not deleted

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed Dec 8 11:14:22 CST 2010

#139: Existing symbolic links not deleted
  Reporter:  eschnett       |       Owner:  eric9
      Type:  defect         |      Status:  new  
  Priority:  major          |   Milestone:       
 Component:  GetComponents  |     Version:       
Resolution:                 |    Keywords:       

Comment (by knarf):

 That was my point. Imagine a Cactus checkout in /work/user/Cactus and you
 have a symlink: /home/user/Cactus -> /work/user/Cactus. Now you let
 GetComponents work in /home/user and update a git repository within it
 which should link into /home/user/Cactus/example ->

 It could do that with two commands:
 a) ln -fs /home/user/Cactus/repos/example /home/user/Cactus
 b) ln -fs /home/user/Cactus/repos/example /home/user/Cactus/example

 Both result in the same link within 'Cactus' in case there is no 'example'
 there yet. Adding -n to version a) would, however, result in overwriting
 'Cactus'. The question now is which version of the ln command is actually
 used by GetComponents. Version b) would however fail without -n if
 'example' already exists, because it would try to create an 'example' link
 within the target of the existing 'example' link.

Ticket URL: <https://trac.einsteintoolkit.org/ticket/139#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit

More information about the Trac mailing list