[ARVADOS] updated: 376149e7c64e8a37a957f3a15befaad6c68464df

git at public.curoverse.com git at public.curoverse.com
Mon Aug 25 23:26:41 EDT 2014


Summary of changes:
 sdk/cli/bin/crunch-job | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  376149e7c64e8a37a957f3a15befaad6c68464df (commit)
      from  eba617baa5f8f180f9a55777beeb228849b36a9e (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 376149e7c64e8a37a957f3a15befaad6c68464df
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Aug 25 23:26:38 2014 -0400

    Do not blow up when tmp directory already exists. No issue #

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 6eb9956..395ea2a 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1504,7 +1504,8 @@ my $commit = $ENV{"CRUNCH_SRC_COMMIT"};
 my $repo = $ENV{"CRUNCH_SRC_URL"};
 my $task_work = $ENV{"TASK_WORK"};
 
-make_path $task_work or die "Failed to create temporary working directory ($task_work): $!";
+make_path $task_work;
+-e $task_work or die "Failed to create temporary working directory ($task_work): $!";
 
 open L, ">", "$destdir.lock" or die "$destdir.lock: $!";
 flock L, LOCK_EX;

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list