mirror of https://github.com/BOINC/boinc.git
Merge pull request #2058 from progger/stage_file_fix
Fixed touch md5 file path
This commit is contained in:
commit
1af87de831
|
@ -69,7 +69,6 @@ function stage_file($path) {
|
||||||
if (!file_exists($path)) error_exit("no such file: $path\n");
|
if (!file_exists($path)) error_exit("no such file: $path\n");
|
||||||
$file = basename($path);
|
$file = basename($path);
|
||||||
$dl_path = dir_hier_path($file, $download_dir, $fanout);
|
$dl_path = dir_hier_path($file, $download_dir, $fanout);
|
||||||
$dl_md5_path = "$dl_path.md5";
|
|
||||||
|
|
||||||
if ($verbose) {
|
if ($verbose) {
|
||||||
echo "staging $file to $dl_path\n";
|
echo "staging $file to $dl_path\n";
|
||||||
|
@ -93,7 +92,7 @@ function stage_file($path) {
|
||||||
if (!$ret) error_exit(" copy failed\n");
|
if (!$ret) error_exit(" copy failed\n");
|
||||||
if ($verbose) echo " moved file\n";
|
if ($verbose) echo " moved file\n";
|
||||||
}
|
}
|
||||||
touch("$path.md5");
|
touch("$dl_path.md5");
|
||||||
break;
|
break;
|
||||||
case -1:
|
case -1:
|
||||||
error_exit("
|
error_exit("
|
||||||
|
|
Loading…
Reference in New Issue