Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidatePackageInfo: suppress Print output if requested #5766

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

ThomasBreuer
Copy link
Contributor

ValidatePackageInfo is called programmatically by the PackageManager package.
In this situation, we do not want to show the diagnostic output.

`ValidatePackageInfo` is called programmatically by the PackageManager
package.
In this situation, we do not want to show the diagnostic output.
@ThomasBreuer ThomasBreuer added kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker) release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes backport-to-4.13 labels Jul 24, 2024
lib/package.gd Outdated
@@ -1065,6 +1065,8 @@ DeclareGlobalFunction( "DeclareAutoreadableVariables" );
## The result is <K>true</K> if the record or the contents of the file,
## respectively, has correct format, and <K>false</K> otherwise;
## in the latter case information about the incorrect components is printed.
## These diagnostic messages can be suppressed by setting the global option
## <C>verbose</C> to <K>false</K>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, how about

Suggested change
## <C>verbose</C> to <K>false</K>.
## <C>quiet</C> to <K>true</K>.

as we already have a quiet option for a couple other commands.

Plus this allows writing

ValidatePackageInfo(rec() : quiet);

@fingolfin fingolfin changed the title ValidatePackageInfo: suppress Print output if wanted ValidatePackageInfo: suppress Print output if requested Jul 29, 2024
@fingolfin fingolfin merged commit 888ff6a into gap-system:master Jul 29, 2024
28 of 30 checks passed
@ThomasBreuer ThomasBreuer deleted the TB_ValidatePackageInfo branch July 29, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants