- update_versions: if FILE.file_ref_info contains <open_name>,

use that instead of physical name.
    This lets you have logical names with slashes

svn path=/trunk/boinc/; revision=23042
This commit is contained in:
David Anderson 2011-02-16 04:57:31 +00:00
parent d4df1871d5
commit 07982df97a
2 changed files with 13 additions and 2 deletions

View File

@ -797,3 +797,11 @@ David 15 Feb 2011
sched/
file_upload_handler.cpp
David 15 Feb 2011
- update_versions: if FILE.file_ref_info contains <open_name>,
use that instead of physical name.
This lets you have logical names with slashes
py/Boinc/
tools.py

View File

@ -238,15 +238,18 @@ def process_app_version(
first = True
for exec_file in exec_files + non_exec_files:
file_base = os.path.basename(exec_file)
extra = file_ref_infos.get(exec_file)
open_name = get_kludge_open_name(file_base)
if extra and '<open_name>' in extra:
open_name = False;
url_filename = get_kludge_url_filename(file_base)
xml_doc += ' <file_ref>\n'
xml_doc += ' <file_name>%s</file_name>\n' % url_filename
if first:
xml_doc += ' <main_program/>\n'
else:
if open_name:
xml_doc += ' <open_name>%s</open_name>\n' % open_name
extra = file_ref_infos.get(exec_file)
if extra:
if not extra.endswith('\n'):
extra += '\n'