Changeset 820

Show
Ignore:
Timestamp:
10/12/07 16:07:18 (1 year ago)
Author:
Gregor
Message:

sss/net.d: Made dsss net fetch fall back on copying where renaming is

impossible (see ticket #138).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/ChangeLog

    r816 r820  
     1SVN from 0.73: 
     2        - Made `dsss net fetch` fall back on copying where renaming is 
     3          impossible (see ticket #138). 
     4 
    150.73 from 0.72: 
    26        - Rebuild: Merged DMD 2.003. 
  • trunk/sss/net.d

    r745 r820  
    303303                 
    304304                // move into place 
    305                 std.file.rename(archname, 
    306                                 origcwd ~ std.path.sep ~ archname); 
     305                try { 
     306                    std.file.rename(archname, 
     307                                    origcwd ~ std.path.sep ~ archname); 
     308                } catch (Exception x) { 
     309                    // can't rename, copy 
     310                    std.file.copy(archname, 
     311                                  origcwd ~ std.path.sep ~ archname); 
     312                    std.file.remove(archname); 
     313                } 
    307314                 
    308315                writefln("Archive %s created.", archname);