[ARVADOS] created: 34ec4990bb0deaa6c7bef5b9793da3c6836b79e2

git at public.curoverse.com git at public.curoverse.com
Wed Jul 1 16:27:26 EDT 2015


        at  34ec4990bb0deaa6c7bef5b9793da3c6836b79e2 (commit)


commit 34ec4990bb0deaa6c7bef5b9793da3c6836b79e2
Author: Nico Cesar <nico at curoverse.com>
Date:   Wed Jul 1 16:23:33 2015 -0400

    5989: create directory structure for temp files
    
    refs #5989 bug_1

diff --git a/docker/api/update-gitolite.rb b/docker/api/update-gitolite.rb
index 8247931..a1500e0 100755
--- a/docker/api/update-gitolite.rb
+++ b/docker/api/update-gitolite.rb
@@ -5,6 +5,7 @@ require 'pp'
 require 'arvados'
 require 'tempfile'
 require 'yaml'
+require 'fileutils'
 
 # This script does the actual gitolite config management on disk.
 #
@@ -54,6 +55,7 @@ end
 def replace_file(path, contents)
   unlink_now = true
   dirname, basename = File.split(path)
+  FileUtils.mkpath(dirname)
   new_file = Tempfile.new([basename, ".tmp"], dirname)
   begin
     new_file.write(contents)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list