*** empty log message ***

svn path=/trunk/boinc/; revision=2589
This commit is contained in:
Karl Chen 2003-10-28 00:54:03 +00:00
parent d76a79420d
commit 5417e32760
3 changed files with 10 additions and 4 deletions

View File

@ -7151,6 +7151,8 @@ Karl 2003-10-27
disk filename 'open_name=url_filename' (url_filename is the basename of
file as copied to download/)
tools/
update_versions
py/Boinc/
tools.py

View File

@ -61,7 +61,7 @@ def process_executable_file(file, signature_text=None, quiet=False, executable=T
target_path = os.path.join(target_dir, target_file_base)
if file != target_path:
if not quiet:
print "Copying %s to %s"%(file_base, target_dir)
print "Copying %s to %s"%(source_file_base, target_dir)
shutil.copy(file, target_path)
xml = '''<file_info>

View File

@ -40,6 +40,7 @@ verbose = 0
try:
if sys.argv[1] == '-v':
verbose = 1
print '(verbose mode)'
except:
pass
@ -62,6 +63,9 @@ def xsort(list):
newlist.sort()
return newlist
def xlistdir(dir):
return map(lambda file: os.path.join(dir, file), os.listdir(dir))
def add_files(app, match, exec_file, non_exec_files=[]):
''' add files to app/core.
@ -142,7 +146,7 @@ def find_versions(app, dir):
"""
for filepath in os.listdir(dir):
for filepath in xlistdir(dir):
if os.path.islink(filepath):
continue
if os.path.isdir(filepath):
@ -151,7 +155,7 @@ def find_versions(app, dir):
match = None
non_exec_files = []
dir = filepath
for filepath in os.listdir(dir):
for filepath in xlistdir(dir):
if os.path.isdir(filepath):
continue
if not match:
@ -176,7 +180,7 @@ def find_versions(app, dir):
continue
add_files(app=app, match=match, exec_file=filepath)
for appdir in os.listdir(config.app_dir):
for appdir in xlistdir(config.app_dir):
if not os.path.isdir(appdir): continue
dirname = os.path.basename(appdir)
if dirname == 'boinc':