Skip to content

Commit

Permalink
shorten and expand
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 9, 2024
1 parent 854575f commit fbfd7d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2747,9 +2747,11 @@ function print_status(env::EnvCache, old_env::Union{Nothing,EnvCache}, registrie
loaded_version = pkgversion(m)
env_version = pkg_spec.version
if loaded_version !== env_version
printstyled(io, " [different version loaded: v$loaded_version]"; color=:light_yellow)
printstyled(io, " [loaded: v$loaded_version]"; color=:light_yellow)
else
printstyled(io, " [different path loaded, but same version: `$loaded_path` expected `$env_path`]"; color=:light_yellow)
loaded_version_str = loaded_version === nothing ? "" : " (v$loaded_version)"
env_version_str = env_version === nothing ? "" : " (v$env_version)"
printstyled(io, " [loaded: `$loaded_path`$loaded_version_str expected `$env_path`$env_version_str]"; color=:light_yellow)
end
end
end
Expand Down

0 comments on commit fbfd7d5

Please sign in to comment.