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

« back to all changes in this revision

Viewing changes to setup/setuputil.py

  • Committer: wagrant
  • Date: 2008-09-18 07:56:48 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1048
setup.setuputil: Remove action_linktree (it was unused), thus removing
                 the common.makeuser import, thus making IVLE
                 installable. Being able to install things is useful.
common.makeuser: Garbage-collect. linktree's reference count is 0. You
                 can work out the rest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import string
31
31
import stat
32
32
 
33
 
# Import modules from the website is tricky since they're in the www
34
 
# directory.
35
 
sys.path.append('lib')
36
 
import common.makeuser
37
 
 
38
33
# Determine which Python version (2.4 or 2.5, for example) we are running,
39
34
# and use that as the filename to the Python directory.
40
35
# Just get the first 3 characters of sys.version.
135
130
        action_remove(dst, dry)
136
131
        shutil.copytree(src, dst, True)
137
132
 
138
 
def action_linktree(src, dst, dry):
139
 
    """Hard-links an entire directory tree. Same as copytree but the created
140
 
    files are hard-links not actual copies. Removes the existing destination.
141
 
    """
142
 
    action_remove(dst, dry)
143
 
    print "<cp with hardlinks> -r", src, dst
144
 
    if dry: return
145
 
    common.makeuser.linktree(src, dst)
146
 
 
147
133
def action_copylist(srclist, dst, dry, srcdir="."):
148
134
    """Copies all files in a list to a new location. The files in the list
149
135
    are read relative to the current directory, and their destinations are the