Skip to content

Commit

Permalink
Use the output from reachable_registries in a better way.
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarFarneback committed Aug 2, 2023
1 parent b735d48 commit a97f2e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LocalRegistry"
uuid = "89398ba2-070a-4b16-a995-9893c55d93cf"
authors = ["Gunnar Farnebäck <gunnar@lysator.liu.se>"]
version = "0.5.4"
version = "0.5.5"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
4 changes: 1 addition & 3 deletions src/LocalRegistry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ function do_register(package, registry;
error("$(package) is not a valid package (no src/$(pkg_filename))")
end


# If the package directory is dirty, a different version could be
# present in Project.toml.
if is_dirty(package_path, gitconfig)
Expand Down Expand Up @@ -458,8 +457,7 @@ function find_registry_path(::Nothing, pkg::Project)
all_registries)

matching_registries = filter(all_registries) do reg_spec
reg_data = TOML.parsefile(joinpath(reg_spec.path, "Registry.toml"))
haskey(reg_data["packages"], string(pkg.uuid))
haskey(reg_spec.pkgs, pkg.uuid)
end

if isempty(matching_registries)
Expand Down

0 comments on commit a97f2e3

Please sign in to comment.