[ARVADOS] updated: 37d93ae5b99f202b38c50e037a0ee8e600d97f05

git at public.curoverse.com git at public.curoverse.com
Mon Aug 25 23:51:30 EDT 2014


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

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

    Do not blow up in install stage when TASK_WORK is not set. No issue #

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 395ea2a..638353d 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1504,8 +1504,10 @@ my $commit = $ENV{"CRUNCH_SRC_COMMIT"};
 my $repo = $ENV{"CRUNCH_SRC_URL"};
 my $task_work = $ENV{"TASK_WORK"};
 
-make_path $task_work;
--e $task_work or die "Failed to create temporary working directory ($task_work): $!";
+if ($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