Skip to content

Commit 1ed9ab1

Browse files
committed
Validate PackageInfo.g when loading packages
This helps package authors notice earlier if a package update they made failed.
1 parent 31cabd7 commit 1ed9ab1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/package.gi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,10 @@ InstallGlobalFunction( LoadPackage, function( arg )
15921592
fi;
15931593
fi;
15941594

1595+
if not ValidatePackageInfo(info) then
1596+
Print("#E Validation of package ", pkgname, " from ", info.InstallationPath, " failed\n");
1597+
fi;
1598+
15951599
# Notify the documentation (for the available version).
15961600
LoadPackageDocumentation( info );
15971601

0 commit comments

Comments
 (0)