-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the availability check in Packages.install
#1039
fix the availability check in Packages.install
#1039
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1039 +/- ##
==========================================
+ Coverage 74.34% 74.39% +0.04%
==========================================
Files 55 55
Lines 4530 4527 -3
==========================================
Hits 3368 3368
+ Misses 1162 1159 -3
|
src/packages.jl
Outdated
for inforec in getproperty(info, spec) | ||
if version == string(getproperty(inforec, :Version)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two lines are no longer needed due to the changes below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to solve the problem with recog
in oscar-system/Oscar.jl#3688 as well and seems to be a better solution than #1037
Thank you for the fix! A very minor point, but: next time I would recommend to "squash merge" PRs with several "fixup" commits. To avoid a bunch of extra commits on master:
|
This is an alternative to #1037.
Here we try to keep the check whether a not yet loaded GAP package is already installed, i.e.,
Packages.load
would returntrue
.The previous code was wrong in the sense that it did not consider the availability of the needed packages. Now we call the right GAP function, which tests also the needed packages.