pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Packages that install info file...
details: https://anonhg.NetBSD.org/pkgsrc/rev/864fc2b99946
branches: trunk
changeset: 514194:864fc2b99946
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Jun 08 17:38:56 2006 +0000
description:
Packages that install info files should set INFO_FILES.
diffstat:
pkgtools/pkglint/files/pkglint.pl | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r a4105fba385d -r 864fc2b99946 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Jun 08 17:21:28 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Jun 08 17:38:56 2006 +0000
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.613 2006/06/08 17:21:28 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.614 2006/06/08 17:38:56 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -5746,6 +5746,11 @@
} elsif ($text eq "info/dir") {
$line->log_error("\"info/dir\" must not be listed. Use install-info to add/remove an entry.");
+ } elsif ($text =~ qr"^info/.+$") {
+ if (defined($varuse) && !exists($makevar->{"INFO_FILES"})) {
+ $line->log_warning("Packages that install info files should set INFO_FILES.");
+ }
+
} elsif (defined($effective_pkgbase) && $text =~ qr"^lib/\Q${effective_pkgbase}\E/") {
# Fine.
Home |
Main Index |
Thread Index |
Old Index