[ARVADOS] updated: f2d60a7dc6767003ad8b821dc8029a7dd54deaac
git at public.curoverse.com
git at public.curoverse.com
Fri Jul 25 08:05:10 EDT 2014
Summary of changes:
sdk/cli/bin/crunch-job | 7 +++++++
1 file changed, 7 insertions(+)
via f2d60a7dc6767003ad8b821dc8029a7dd54deaac (commit)
via d0ab992df96443576bc8f30410940c1acdac827a (commit)
from ce8d052472be0cb417596c41f2700cf92a260fd3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f2d60a7dc6767003ad8b821dc8029a7dd54deaac
Merge: ce8d052 d0ab992
Author: Brett Smith <brett at curoverse.com>
Date: Fri Jul 25 08:04:33 2014 -0400
Merge branch 'staging'
Closes #3315. Thanks Guillermo!
commit d0ab992df96443576bc8f30410940c1acdac827a
Author: Guillermo Carrasco <guille.ch.88 at gmail.com>
Date: Wed Jul 9 15:02:27 2014 -0400
Create temporary directory if it does not exist
diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index a4951e7..462b78c 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -82,6 +82,7 @@ use IPC::Open2;
use IO::Select;
use File::Temp;
use Fcntl ':flock';
+use File::Path qw( make_path );
$ENV{"TMPDIR"} ||= "/tmp";
unless (defined $ENV{"CRUNCH_TMP"}) {
@@ -91,6 +92,12 @@ unless (defined $ENV{"CRUNCH_TMP"}) {
$ENV{"CRUNCH_TMP"} .= "-$<";
}
}
+
+# Create the tmp directory if it does not exist
+if ( ! -d $ENV{"CRUNCH_TMP"} ) {
+ make_path $ENV{"CRUNCH_TMP"} or die "Failed to create temporary working directory: " . $ENV{"CRUNCH_TMP"};
+}
+
$ENV{"JOB_WORK"} = $ENV{"CRUNCH_TMP"} . "/work";
$ENV{"CRUNCH_INSTALL"} = "$ENV{CRUNCH_TMP}/opt";
$ENV{"CRUNCH_WORK"} = $ENV{"JOB_WORK"}; # deprecated
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list