mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2589
This commit is contained in:
parent
d76a79420d
commit
5417e32760
|
@ -7151,6 +7151,8 @@ Karl 2003-10-27
|
||||||
disk filename 'open_name=url_filename' (url_filename is the basename of
|
disk filename 'open_name=url_filename' (url_filename is the basename of
|
||||||
file as copied to download/)
|
file as copied to download/)
|
||||||
|
|
||||||
|
tools/
|
||||||
|
update_versions
|
||||||
py/Boinc/
|
py/Boinc/
|
||||||
tools.py
|
tools.py
|
||||||
|
|
||||||
|
|
|
@ -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)
|
target_path = os.path.join(target_dir, target_file_base)
|
||||||
if file != target_path:
|
if file != target_path:
|
||||||
if not quiet:
|
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)
|
shutil.copy(file, target_path)
|
||||||
|
|
||||||
xml = '''<file_info>
|
xml = '''<file_info>
|
||||||
|
|
|
@ -40,6 +40,7 @@ verbose = 0
|
||||||
try:
|
try:
|
||||||
if sys.argv[1] == '-v':
|
if sys.argv[1] == '-v':
|
||||||
verbose = 1
|
verbose = 1
|
||||||
|
print '(verbose mode)'
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -62,6 +63,9 @@ def xsort(list):
|
||||||
newlist.sort()
|
newlist.sort()
|
||||||
return newlist
|
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=[]):
|
def add_files(app, match, exec_file, non_exec_files=[]):
|
||||||
''' add files to app/core.
|
''' 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):
|
if os.path.islink(filepath):
|
||||||
continue
|
continue
|
||||||
if os.path.isdir(filepath):
|
if os.path.isdir(filepath):
|
||||||
|
@ -151,7 +155,7 @@ def find_versions(app, dir):
|
||||||
match = None
|
match = None
|
||||||
non_exec_files = []
|
non_exec_files = []
|
||||||
dir = filepath
|
dir = filepath
|
||||||
for filepath in os.listdir(dir):
|
for filepath in xlistdir(dir):
|
||||||
if os.path.isdir(filepath):
|
if os.path.isdir(filepath):
|
||||||
continue
|
continue
|
||||||
if not match:
|
if not match:
|
||||||
|
@ -176,7 +180,7 @@ def find_versions(app, dir):
|
||||||
continue
|
continue
|
||||||
add_files(app=app, match=match, exec_file=filepath)
|
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
|
if not os.path.isdir(appdir): continue
|
||||||
dirname = os.path.basename(appdir)
|
dirname = os.path.basename(appdir)
|
||||||
if dirname == 'boinc':
|
if dirname == 'boinc':
|
||||||
|
|
Loading…
Reference in New Issue