Skip to content

Commit 5491de5

Browse files
LachlanGunntkelman
authored andcommitted
Added URL rewriting to Pkg.
1 parent 9704384 commit 5491de5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

base/pkg.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
module Pkg
44

5-
export Git, Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry, Git
5+
export Dir, Types, Reqs, Cache, Read, Query, Resolve, Write, Entry, Git
66
export dir, init, rm, add, available, installed, status, clone, checkout,
7-
update, resolve, test, build, free, pin, PkgError
7+
update, resolve, test, build, free, pin, PkgError, setprotocol!
88

99
const DEFAULT_META = "https://github.com/JuliaLang/METADATA.jl"
1010
const META_BRANCH = "metadata-v2"
@@ -370,6 +370,8 @@ test(pkgs::AbstractString...; coverage::Bool=false) = cd(Entry.test,AbstractStri
370370

371371
dependents(packagename::AbstractString) = Reqs.dependents(packagename)
372372

373+
setprotocol!(proto::AbstractString) = Cache.setprotocol!(proto)
374+
373375

374376
# point users to PkgDev
375377
register(args...) =

0 commit comments

Comments
 (0)