create_work: fix bug when using remote input files

This commit is contained in:
David Anderson 2014-04-25 22:15:47 -07:00
parent 166d9f46c0
commit 3a82ec871f
1 changed files with 10 additions and 3 deletions

View File

@ -364,9 +364,16 @@ static int process_workunit(
bool found_file_number = false, found_open_name = false; bool found_file_number = false, found_open_name = false;
while (!xp.get_tag()) { while (!xp.get_tag()) {
if (xp.parse_int("file_number", file_number)) { if (xp.parse_int("file_number", file_number)) {
INFILE_DESC& id = infiles[file_number];
if (id.is_remote) {
sprintf(buf, " <file_name>jf_%s</file_name>\n",
infiles[file_number].md5
);
} else {
sprintf(buf, " <file_name>%s</file_name>\n", sprintf(buf, " <file_name>%s</file_name>\n",
infiles[file_number].name infiles[file_number].name
); );
}
out += buf; out += buf;
found_file_number = true; found_file_number = true;
continue; continue;