Skip to content

Commit

Permalink
Fix display bug of PackageSpec without a name.
Browse files Browse the repository at this point in the history
  • Loading branch information
BioTurboNick authored and fredrikekre committed Jan 30, 2019
1 parent c77adfd commit a1bd8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ has_uuid(pkg::PackageSpec) = pkg.uuid !== nothing

function Base.show(io::IO, pkg::PackageSpec)
vstr = repr(pkg.version)
f = ["name" => pkg.name, "uuid" => has_uuid(pkg) ? pkg.uuid : "", "v" => (vstr == "VersionSpec(\"*\")" ? "" : vstr)]
f = ["name" => has_name(pkg) ? pkg.name : "", "uuid" => has_uuid(pkg) ? pkg.uuid : "", "v" => (vstr == "VersionSpec(\"*\")" ? "" : vstr)]
if pkg.repo !== nothing
if pkg.repo.url !== nothing
push!(f, "url/path" => string("\"", pkg.repo.url, "\""))
Expand Down

0 comments on commit a1bd8cf

Please sign in to comment.