summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-08 17:38:56 +0000
committerrillig <rillig@pkgsrc.org>2006-06-08 17:38:56 +0000
commitac0b15a26372220ddd20e6d5eb011b41296aa76e (patch)
treeb170b549335559c8ea3f9fdcbf6a20a4556c174f /pkgtools
parentef2af6d8a68682ddb8acefe565367e08e0a9b932 (diff)
downloadpkgsrc-ac0b15a26372220ddd20e6d5eb011b41296aa76e.tar.gz
Packages that install info files should set INFO_FILES.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 23b2397cbd0..018fcc6db03 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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 @@ sub checkfile_PLIST($) {
} 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.