diff --git a/base/pkg/pkg.jl b/base/pkg/pkg.jl index 7d60ec9e6ce9d..2614c8d3d3939 100644 --- a/base/pkg/pkg.jl +++ b/base/pkg/pkg.jl @@ -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() diff --git a/test/pkg.jl b/test/pkg.jl index 670d1dbcc42aa..c0012b49ed024 100644 --- a/test/pkg.jl +++ b/test/pkg.jl @@ -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)))