Skip to content

Commit

Permalink
Fix depwarn of readall in deps/build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Apr 7, 2016
1 parent 4c21dc5 commit f1db4b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions REQUIRE
Expand Up @@ -3,5 +3,6 @@ FixedPointNumbers 0.1
ColorTypes 0.2
FileIO
Images
Compat 0.7.7
@osx Homebrew
BinDeps
5 changes: 3 additions & 2 deletions deps/build.jl
@@ -1,4 +1,5 @@
using BinDeps
using Compat

@BinDeps.setup

Expand Down Expand Up @@ -39,7 +40,7 @@ end
# Extract the appropriate filename to download
magick_base = "http://www.imagemagick.org/download/binaries"
binariesfn = download(magick_base)
str = readall(binariesfn)
str = readstring(binariesfn)
pattern = "ImageMagick-6.9.*?-Q16-$(OS_ARCH)-dll.exe"
m = match(Regex(pattern), str)
magick_exe = convert(ASCIIString, m.match)
Expand Down Expand Up @@ -93,7 +94,7 @@ end

# Hack-fix for issue #12
# Check to see whether init_deps is present, and if not add it
if isempty(search(readall(joinpath(dirname(@__FILE__),"deps.jl")), "init_deps"))
if isempty(search(readstring(joinpath(dirname(@__FILE__),"deps.jl")), "init_deps"))
open("deps.jl", "a") do io
write(io, initfun)
end
Expand Down

0 comments on commit f1db4b2

Please sign in to comment.