Skip to content

Commit

Permalink
PackageInfo.g: fix AvailabilityTest return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Nov 7, 2024
1 parent 60d1e5d commit 44c9594
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ Dependencies := rec(
),

AvailabilityTest := function()
local path;
# test for existence of the compiled binary
path := DirectoriesPackagePrograms("4ti2gap");
if not "4ti2gap" in SHOW_STAT() and
Filename(path, "4ti2gap.so") = fail then
return fail;
fi;
return true;
if not IsKernelExtensionAvailable("4ti2gap") then
LogPackageLoadingMessage(PACKAGE_WARNING,
["the kernel module is not compiled, ",
"the package cannot be loaded."]);
return false;
fi;
return true;
end,


Expand Down

0 comments on commit 44c9594

Please sign in to comment.