From 1535c10bda9db0c69f9032188b39eb53d4e58ee3 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 9 Jul 2012 17:37:30 +0000 Subject: [PATCH] Mention -e when warnings have been found and it wasn't specified. Update for games handling changes. --- pkgtools/pkglint/files/pkglint.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 58f24758889d..80a9828de27f 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.833 2012/07/06 09:29:01 obache Exp $ +# $NetBSD: pkglint.pl,v 1.834 2012/07/09 17:37:30 wiz Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -248,7 +248,7 @@ sub print_summary_and_exit($) { if (!$quiet) { if ($errors != 0 || $warnings != 0) { - print("$errors errors and $warnings warnings found.\n"); + print("$errors errors and $warnings warnings found." . ($explain_flag ? "" : " (Use -e for more details.)") . "\n"); } else { print "looks fine.\n"; } @@ -2042,7 +2042,7 @@ sub load_tool_names() { # Some user-defined variables do not influence the binary # package at all and therefore do not have to be added to # BUILD_DEFS. - foreach my $bdvar (qw(DISTDIR FETCH_CMD FETCH_OUTPUT_ARGS GAMEOWN GAMEGRP GAMEDIRMODE)) { + foreach my $bdvar (qw(DISTDIR FETCH_CMD FETCH_OUTPUT_ARGS GAMES_USER GAMES_GROUP GAMEDATAMODE GAMEOWN GAMEGRP GAMEDIRMODE)) { $system_build_defs->{$bdvar} = true; } #$system_build_defs->{"PACKAGES"} = true;