~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: mattgiuca
  • Date: 2008-01-09 02:29:57 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:132
setup.py: File copying is more robust - preserves symlinks and permissions
    when copying.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
            shutil.rmtree(dst, True)
580
580
    print "cp -r", src, dst
581
581
    if dry: return
582
 
    shutil.copytree(src, dst)
 
582
    shutil.copytree(src, dst, True)
583
583
 
584
584
def action_copylist(srclist, dst, dry):
585
585
    """Copies all files in a list to a new location. The files in the list
605
605
    print "cp -f", src, dst
606
606
    if not dry:
607
607
        shutil.copyfile(src, dst)
 
608
        shutil.copymode(src, dst)
608
609
 
609
610
def action_symlink(src, dst, dry):
610
611
    """Creates a symlink in a given location. Creates all parent directories