From d332bd43da616fa77a68447604ed59fcffe42bbc Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Tue, 10 Nov 2015 07:51:55 -0800 Subject: [PATCH] put a try around the symlink in mkcachedir ref issue 12166 (cherry picked from commit 6b979b67d433e2cdc5f8d68433cb12d78033835b) from PR #14026 --- base/pkg/cache.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/pkg/cache.jl b/base/pkg/cache.jl index 22107f430e70c..26d3fb9be2970 100644 --- a/base/pkg/cache.jl +++ b/base/pkg/cache.jl @@ -22,8 +22,10 @@ function mkcachedir() if !isdir(rootcache) mkdir(rootcache) end - symlink(rootcache, cache) - return + try + symlink(rootcache, cache) + return + end end mkdir(cache) end