From 51d52fd3254470d7827ddf66f24ffa6c7f205fdf Mon Sep 17 00:00:00 2001 From: aitzkora Date: Thu, 9 Aug 2018 18:19:32 +0200 Subject: [PATCH] Change isdefined for @isdefined because the new function isdefined needs two arguments, the first being the name of the module where the symbol must be define remove the deprecated readstring --- deps/build.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index 8263810..b1a6f6e 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -4,10 +4,10 @@ module DefaultDeps if isfile("deps.jl") include("deps.jl") end - if !isdefined(:ROOTENV) + if !@isdefined(ROOTENV) const ROOTENV = abspath(dirname(@__FILE__), "usr") end - if !isdefined(:MINICONDA_VERSION) + if !@isdefined(MINICONDA_VERSION) const MINICONDA_VERSION = "3" end end @@ -32,7 +32,7 @@ const ROOTENV = "$(escape_string(ROOTENV))" const MINICONDA_VERSION = "$(escape_string(MINICONDA_VERSION))" """ -if !isfile("deps.jl") || readstring("deps.jl") != deps +if !isfile("deps.jl") || open(f->read(f,String),"deps.jl") != deps write("deps.jl", deps) end