Skip to content
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

Improve IsPackageLoaded #2877

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Commits on Sep 27, 2018

  1. Improve IsPackageLoaded

    First off, it now aborts immediately if the package is not loaded, and
    doesn't call the package's `AvailabilityTest` function (fixes gap-system#2862).
    
    This was achieved by not using `TestPackageAvailability` anymore, but rather
    `IsPackageMarkedForLoading`. The main difference to the latter now is this:
    We now record whether a package fully completed loading (in particular, we
    record whether its `init.g` and `read.g` executed without an error). This
    information is then used by `IsPackageLoaded` after
    `IsPackageMarkedForLoading` returned `true`, to determine the final result.
    fingolfin committed Sep 27, 2018
    Configuration menu
    Copy the full SHA
    591b904 View commit details
    Browse the repository at this point in the history