Skip to content

Commit

Permalink
update Compat for rename of Pkg to OldPkg
Browse files Browse the repository at this point in the history
also temporarily disable the Project file while things are in flux
  • Loading branch information
KristofferC committed May 22, 2018
1 parent c5527e9 commit 0d8aec6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
File renamed without changes.
10 changes: 8 additions & 2 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1452,9 +1452,15 @@ else
end

@static if VERSION < v"0.7.0-DEV.3656"
const Pkg = Base.Pkg
const OldPkg = Base.Pkg
else
import Pkg
vers = "v$(VERSION.major).$(VERSION.minor)"
if isdir(abspath(Base.Sys.BINDIR, "..", "share", "julia", "stdlib", vers, "OldPkg"))
import OldPkg
else
import Pkg
const OldPkg = Pkg
end
end

@static if VERSION < v"0.7.0-DEV.3630"
Expand Down
2 changes: 2 additions & 0 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ else
import Base.LinAlg.BLAS.@blasfunc
end

Base.@deprecate_binding Pkg OldPkg

if VERSION < v"0.7.0-DEV.2915"
const textwidth = Compat.Unicode.textwidth
export textwidth
Expand Down

0 comments on commit 0d8aec6

Please sign in to comment.