101
101
# Needed by python
102
102
'/usr/bin/python%s' % PYTHON_VERSION,
103
# Needed by fileservice
104
'/lib/libcom_err.so.2',
105
'/lib/libcrypt.so.1',
106
'/lib/libkeyutils.so.1',
107
'/lib/libresolv.so.2',
110
'/usr/lib/libapr-1.so.0',
111
'/usr/lib/libaprutil-1.so.0',
112
'/usr/lib/libdb-4.4.so',
113
'/usr/lib/libexpat.so.1',
114
'/usr/lib/libgcrypt.so.11',
115
'/usr/lib/libgnutls.so.13',
116
'/usr/lib/libgpg-error.so.0',
117
'/usr/lib/libgssapi_krb5.so.2',
118
'/usr/lib/libk5crypto.so.3',
119
'/usr/lib/libkrb5.so.3',
120
'/usr/lib/libkrb5support.so.0',
121
'/usr/lib/liblber.so.2',
122
'/usr/lib/libldap_r.so.2',
123
'/usr/lib/libneon.so.26',
124
'/usr/lib/libpq.so.5',
125
'/usr/lib/libsasl2.so.2',
126
'/usr/lib/libsqlite3.so.0',
127
'/usr/lib/libsvn_client-1.so.1',
128
'/usr/lib/libsvn_delta-1.so.1',
129
'/usr/lib/libsvn_diff-1.so.1',
130
'/usr/lib/libsvn_fs-1.so.1',
131
'/usr/lib/libsvn_fs_base-1.so.1',
132
'/usr/lib/libsvn_fs_fs-1.so.1',
133
'/usr/lib/libsvn_ra-1.so.1',
134
'/usr/lib/libsvn_ra_dav-1.so.1',
135
'/usr/lib/libsvn_ra_local-1.so.1',
136
'/usr/lib/libsvn_ra_svn-1.so.1',
137
'/usr/lib/libsvn_repos-1.so.1',
138
'/usr/lib/libsvn_subr-1.so.1',
139
'/usr/lib/libsvn_wc-1.so.1',
140
'/usr/lib/libtasn1.so.3',
141
'/usr/lib/libxml2.so.2',
103
142
# Needed by matplotlib
104
143
'/usr/lib/i686/cmov/libssl.so.0.9.8',
105
144
'/usr/lib/i686/cmov/libcrypto.so.0.9.8',
695
734
# The "safe" version is in jailconf.py. Delete conf.py and replace it with
697
736
# NOTE: The first thing action_rename does is call action_remove.
698
action_rename('jail/opt/ivle/lib/conf/jailconf.py',
737
action_copyfile('jail/opt/ivle/lib/conf/jailconf.py',
699
738
'jail/opt/ivle/lib/conf/conf.py', dry)
701
740
# Compile .py files into .pyc or .pyo files
866
905
def action_remove(path, dry):
867
906
"""Calls rmtree, deleting the target file if it exists."""
868
if os.access(path, os.F_OK):
869
908
print "rm -r", path
871
910
shutil.rmtree(path, True)
911
except OSError, (err, msg):
912
if err != errno.EEXIST:
914
# Otherwise, didn't exist, so we don't care
873
916
def action_rename(src, dst, dry):
874
917
"""Calls rename. Deletes the target if it already exists."""