From a97f2e3758e50ad546e2e2147ce39c69152aa150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gunnar=20Farneb=C3=A4ck?= Date: Wed, 2 Aug 2023 22:43:32 +0200 Subject: [PATCH] Use the output from reachable_registries in a better way. --- Project.toml | 2 +- src/LocalRegistry.jl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 30f64d0..6941063 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LocalRegistry" uuid = "89398ba2-070a-4b16-a995-9893c55d93cf" authors = ["Gunnar Farnebäck "] -version = "0.5.4" +version = "0.5.5" [deps] Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" diff --git a/src/LocalRegistry.jl b/src/LocalRegistry.jl index 9af6b70..5049548 100644 --- a/src/LocalRegistry.jl +++ b/src/LocalRegistry.jl @@ -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) @@ -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)