Permalink
Browse files

Merge branch 'master' of github.com:OCamlPro/opam

  • Loading branch information...
2 parents 55ad5f5 + a1b41d7 commit 5098c5766e4449d550edb464e1c1db6688341929 @samoht samoht committed Oct 10, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/opamSystem.ml
View
@@ -71,8 +71,10 @@ let log_file () =
!OpamGlobals.root_dir / "log" / f
let safe_mkdir dir =
+ let open Unix in
if not (Sys.file_exists dir) then
- Unix.mkdir dir 0o755
+ try mkdir dir 0o755
+ with Unix_error(EEXIST,_,_) -> ()
let mkdir dir =
let rec aux dir =

0 comments on commit 5098c57

Please sign in to comment.