From d4e6a823a4ca2c9f34ee0b8b6c002a50aa2ffcd9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 7 Nov 2024 09:11:21 +0100 Subject: [PATCH] Update lib/package.gi Co-authored-by: Thomas Breuer --- lib/package.gi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,