Commit d4bcc494 authored by Leigh Stoller's avatar Leigh Stoller

Symlink trick to deal with the fact that we switched to archiving the

entire experiment directory, which now that we zip files, was putting
thinks in the wrong place.
parent 643561db
......@@ -3023,12 +3023,23 @@ sub CopyDataStore($$$;$)
"datastore")
== 0 or return -1;
libArchive::TBCheckoutExperimentArchivebyExptIDX($exptidx,
$to_path,
$archive_tag,
"exp/datastore")
== 0 or return -1;
#
# Path confusion. We want this to really be at top level, so
# use a symlink to fake things.
#
if (! -e "$to_path/exp") {
Template::mysystem("cd $to_path; ln -s . exp") == 0
or return -1;
}
if (libArchive::TBCheckoutExperimentArchivebyExptIDX($exptidx,
$to_path,
$archive_tag,
"exp/datastore")) {
unlink("$to_path/exp");
return -1;
}
unlink("$to_path/exp");
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment