Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell authored and ChrisJefferson committed Aug 26, 2024
1 parent bec3a49 commit 1541893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
- master
- stable-4.13
- stable-4.12
- stable-4.11
- stable-4.10
- stable-4.9
os: [ubuntu-latest]
include:
- gap-branch: master
Expand Down
11 changes: 5 additions & 6 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,17 @@ PackageDoc := rec(
),

Dependencies := rec(
GAP := ">= 4.9",
GAP := ">= 4.12",
NeededOtherPackages := [ [ "GAPDoc", ">= 1.5" ] ],
SuggestedOtherPackages := [ ],
ExternalConditions := [ ],
),

AvailabilityTest := function()
local dir, str;
dir := DirectoriesPackagePrograms("curlInterface");
if Filename(dir, "curl.so") = fail then
str := "kernel extension not compiled, package cannot be loaded";
LogPackageLoadingMessage(PACKAGE_WARNING, str);
if not IsKernelExtensionAvailable("curlinterface", "curl") then
LogPackageLoadingMessage(PACKAGE_WARNING,
["the kernel module is not compiled, ",
"the package cannot be loaded."]);
return fail;
fi;
return true;
Expand Down
7 changes: 3 additions & 4 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#
# Reading the declaration part of the package.
#
_PATH_SO:=Filename(DirectoriesPackagePrograms("curlInterface"), "curl.so");
if _PATH_SO <> fail then
LoadDynamicModule(_PATH_SO);

if not LoadKernelExtension("curlInterface", "curl") then
Error("failed to load the curlInterface package kernel extension");
fi;
Unbind(_PATH_SO);

# work around a bug in some PackageManager versions, see
# <https://github.com/gap-packages/PackageManager/pull/100>.
Expand Down

0 comments on commit 1541893

Please sign in to comment.