Skip to content

Commit

Permalink
Add missing duplicate filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Dec 20, 2024
1 parent 19b6e5a commit 3ea581c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/package.gi
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,12 @@ InstallGlobalFunction( InitializePackagesInfoRecords, function( arg )
# the first time this is called, add the cmd line args to the list
if IsEmpty(GAPInfo.PackageDirectories) then
for pkgdirstrs in GAPInfo.CommandLineOptions.packagedirs do
pkgdirs:= List( SplitString( pkgdirstrs, ";" ), Directory);
APPEND_LIST_INTR( GAPInfo.PackageDirectories, pkgdirs );
pkgdirs:= List( SplitString( pkgdirstrs, ";" ), Directory );

Check warning on line 307 in lib/package.gi

View check run for this annotation

Codecov / codecov/patch

lib/package.gi#L307

Added line #L307 was not covered by tests
for pkgdir in pkgdirs do
if not pkgdir in GAPInfo.PackageDirectories then
Add( GAPInfo.PackageDirectories, pkgdir );
fi;
od;

Check warning on line 312 in lib/package.gi

View check run for this annotation

Codecov / codecov/patch

lib/package.gi#L309-L312

Added lines #L309 - L312 were not covered by tests
od;
fi;
# add any new pkg directories to the list
Expand Down

0 comments on commit 3ea581c

Please sign in to comment.