Skip to content

Commit

Permalink
Don't throw for missing Versions.toml in the registry,
Browse files Browse the repository at this point in the history
instead consider that the same as no versions, i.e.
an empty existing file.
  • Loading branch information
fredrikekre committed Jan 25, 2019
1 parent 2c5e36d commit 5e05aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function find_installed(name::String, uuid::UUID, sha1::SHA1)
end

function load_versions(path::String; include_yanked = false)
toml = parse_toml(path, "Versions.toml")
toml = parse_toml(path, "Versions.toml"; fakeit=true)
d = Dict{VersionNumber, SHA1}(
VersionNumber(ver) => SHA1(info["git-tree-sha1"]) for (ver, info) in toml
if !get(info, "yanked", false) || include_yanked)
Expand Down

0 comments on commit 5e05aaf

Please sign in to comment.