Skip to content

Commit

Permalink
warn once instead of depwarn since we want to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Apr 20, 2018
1 parent ac1c075 commit 5ba09d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Pkg3/src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ end
#####################################

function clone(pkg::String...)
Base.depwarn("Pkg.clone is only kept for legacy CI script reasons, please use `add`", :clone)
@warn "Pkg.clone is only kept for legacy CI script reasons, please use `add`" maxlog=1
add(joinpath(pkg...))
end

function dir(pkg::String, paths::String...)
Base.depwarn("Pkg.dir is only kept for legacy CI script reasons", :dir)
@warn "Pkg.dir is only kept for legacy CI script reasons" maxlog=1
pkgid = Base.identify_package(pkg)
pkgid == nothing && return nothing
path = Base.locate_package(pkgid)
Expand Down

0 comments on commit 5ba09d2

Please sign in to comment.