Skip to content

Commit

Permalink
Pkg: rename Entry._resolve => Entry.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Oct 11, 2013
1 parent df8321e commit 8bde376
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion base/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fix(pkg::String) = cd(Entry.fix,pkg)
fix(pkg::String, ver::VersionNumber) = cd(Entry.fix,pkg,ver)

update() = cd(Entry.update,META_BRANCH)
resolve() = cd(Entry._resolve)
resolve() = cd(Entry.resolve)

register(pkg::String) = cd(Entry.register,pkg)
register(pkg::String, url::String) = cd(Entry.register,pkg,url)
Expand Down
15 changes: 6 additions & 9 deletions base/pkg/entry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function edit(f::Function, pkg::String, args...)
r_ = f(r,pkg,args...)
r_ == r && return false
reqs_ = Reqs.parse(r_)
reqs_ != reqs && _resolve(reqs_,avail)
reqs_ != reqs && resolve(reqs_,avail)
Reqs.write("REQUIRE",r_)
info("REQUIRE updated.")
return true
Expand Down Expand Up @@ -112,8 +112,7 @@ function clone(url::String, pkg::String, opts::Cmd=``)
end
isempty(Reqs.parse("$pkg/REQUIRE")) && return
info("Computing changes...")
_resolve()
#4082 TODO: some call to fixup should go here
resolve()
end

function _checkout(pkg::String, what::String, merge::Bool=false, pull::Bool=false)
Expand All @@ -125,8 +124,7 @@ function _checkout(pkg::String, what::String, merge::Bool=false, pull::Bool=fals
info("Pulling $pkg latest $what...")
Git.run(`pull -q --ff-only`, dir=pkg)
end
_resolve()
#4082 TODO: some call to fixup should go here
resolve()
end
end

Expand Down Expand Up @@ -161,7 +159,7 @@ function fix(pkg::String, head::String)
rslv = (head != Git.head(dir=pkg))
info("Creating $pkg branch $branch...")
Git.run(`checkout -q -B $branch $head`, dir=pkg)
rslv ? _resolve() : nothing
rslv ? resolve() : nothing
end
fix(pkg::String) = fix(pkg,Git.head(dir=pkg))

Expand Down Expand Up @@ -213,8 +211,7 @@ function update(branch::String)
end
end
info("Computing changes...")
_resolve(Reqs.parse("REQUIRE"), avail, instd, fixed, free)
#4082 TODO: some call to fixup should go here
resolve(Reqs.parse("REQUIRE"), avail, instd, fixed, free)
end

function publish(branch::String)
Expand Down Expand Up @@ -262,7 +259,7 @@ function publish(branch::String)
Git.run(`push -q`, dir="METADATA")
end

function _resolve(
function resolve(
reqs :: Dict = Reqs.parse("REQUIRE"),
avail :: Dict = Read.available(),
instd :: Dict = Read.installed(avail),
Expand Down

0 comments on commit 8bde376

Please sign in to comment.