Skip to content

Commit

Permalink
remove .jl extension in Pkg.update (#23214)
Browse files Browse the repository at this point in the history
* remove .jl extension in Pkg.update

* add test

(cherry picked from commit 4c5cc04)
  • Loading branch information
fredrikekre authored and ararslan committed Sep 15, 2017
1 parent f862221 commit eb418dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/pkg/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ optimal set of packages versions.
Without arguments, updates all installed packages. When one or more package names are provided as
arguments, only those packages and their dependencies are updated.
"""
update(upkgs::AbstractString...) = cd(Entry.update,Dir.getmetabranch(),Set{String}([upkgs...]))
update(upkgs::AbstractString...) = cd(Entry.update,Dir.getmetabranch(),Set{String}(splitjl.([upkgs...])))

"""
resolve()
Expand Down
1 change: 1 addition & 0 deletions test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ end
Pkg.add("Example.jl")
@test [keys(Pkg.installed())...] == ["Example"]
iob = IOBuffer()
Pkg.update("Example.jl")
Pkg.checkout("Example.jl")
Pkg.status("Example.jl", iob)
str = chomp(String(take!(iob)))
Expand Down

0 comments on commit eb418dc

Please sign in to comment.