Skip to content

Commit

Permalink
Add workaround for AvailabilityTest returning fail
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 11, 2024
1 parent c5766b7 commit 66ac001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ function install(spec::String, version::String = "";
for inforec in getproperty(info, spec)
if version == string(getproperty(inforec, :Version))
fun = getproperty(inforec, :AvailabilityTest)
fun() && return true
is_available = fun()
is_available isa Bool && is_available && return true
end
end
end
Expand Down

0 comments on commit 66ac001

Please sign in to comment.