Skip to content

Commit

Permalink
Validate PackageInfo.g when loading packages
Browse files Browse the repository at this point in the history
This helps package authors notice earlier if a package update
they made failed.
  • Loading branch information
fingolfin committed Aug 22, 2018
1 parent 31cabd7 commit 1ed9ab1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/package.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,10 @@ InstallGlobalFunction( LoadPackage, function( arg )
fi;
fi;

if not ValidatePackageInfo(info) then
Print("#E Validation of package ", pkgname, " from ", info.InstallationPath, " failed\n");
fi;

# Notify the documentation (for the available version).
LoadPackageDocumentation( info );

Expand Down

0 comments on commit 1ed9ab1

Please sign in to comment.