Skip to content

Commit

Permalink
Fix 0.6 abstract type declaration depwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Feb 13, 2017
1 parent e5cea53 commit befe8ad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.4
URIParser
SHA
Compat 0.9.5
Compat 0.17.0
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ build_script:
Pkg.clone(pwd(), \"BinDeps\"); Pkg.build(\"BinDeps\")"

test_script:
- C:\projects\julia\bin\julia -F -e "Pkg.test(\"BinDeps\")"
- C:\projects\julia\bin\julia -e "Pkg.test(\"BinDeps\")"
2 changes: 1 addition & 1 deletion src/BinDeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ macro make_rule(condition,command)
end
end

abstract BuildStep
@compat abstract type BuildStep end

downloadcmd = nothing
function download_cmd(url::AbstractString, filename::AbstractString)
Expand Down
12 changes: 6 additions & 6 deletions src/dependencies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Base: show
const OSNAME = is_windows() ? :Windows : KERNEL

# A dependency provider, if successfully executed will satisfy the dependency
abstract DependencyProvider
@compat abstract type DependencyProvider end

# A library helper may be used by `DependencyProvider`s but will by itself not provide the library
abstract DependencyHelper
@compat abstract type DependencyHelper end

type PackageContext
do_install::Bool
Expand Down Expand Up @@ -91,7 +91,7 @@ export library_dependency, bindir, srcdir, usrdir, libdir

library_dependency(args...; properties...) = error("No context provided. Did you forget `@BinDeps.setup`?")

abstract PackageManager <: DependencyProvider
@compat abstract type PackageManager <: DependencyProvider end

DEBIAN_VERSION_REGEX = r"^
([0-9]+\:)? # epoch
Expand Down Expand Up @@ -227,8 +227,8 @@ libdir(z::Zypper,dep) = ["/usr/lib", "/usr/lib32", "/usr/lib64"]
# Can use everything else without restriction by default
can_use(::Type) = true

abstract Sources <: DependencyHelper
abstract Binaries <: DependencyProvider
@compat abstract type Sources <: DependencyHelper end
@compat abstract type Binaries <: DependencyProvider end

#
# A dummy provider checked for every library that
Expand Down Expand Up @@ -261,7 +261,7 @@ end

libdir(p::CustomPathBinaries,dep) = p.path

abstract BuildProcess <: DependencyProvider
@compat abstract type BuildProcess <: DependencyProvider end

type SimpleBuild <: BuildProcess
steps
Expand Down

0 comments on commit befe8ad

Please sign in to comment.