diff --git a/lib/package.gi b/lib/package.gi index 38ecb7584d..7c9b6e4f4f 100644 --- a/lib/package.gi +++ b/lib/package.gi @@ -865,7 +865,7 @@ InstallGlobalFunction( PackageAvailabilityInfo, # Test whether the availability test function fits. GAPInfo.PackageCurrent:= inforec; - test:= (not IsBound(inforec.AvailabilityTest)) or inforec.AvailabilityTest(); + test:= (not IsBound(inforec.AvailabilityTest)) or (inforec.AvailabilityTest() = true); Unbind( GAPInfo.PackageCurrent ); if test = true then LogPackageLoadingMessage( PACKAGE_DEBUG,