summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2014-03-02 08:39:01 +0000
committerobache <obache>2014-03-02 08:39:01 +0000
commit527fc3ae989be23edbb84e261e8f25914a71af8e (patch)
tree8ebf942c98ee1ad4951e1cd2c52c5b5afe6dbbd7
parentc2ce2a48dd1dbc97fc745b0cf2c2b257c7118e2d (diff)
downloadpkgsrc-527fc3ae989be23edbb84e261e8f25914a71af8e.tar.gz
We can put any files in files/.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 3cc416db323..3e4f8e4f2c7 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.862 2014/01/13 01:54:52 cheusov Exp $
+# $NetBSD: pkglint.pl,v 1.863 2014/03/02 08:39:01 obache Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -7062,6 +7062,8 @@ sub checkfile($) {
if (S_ISDIR($st->mode)) {
if ($basename eq "files" || $basename eq "patches" || $basename eq "CVS") {
# Ok
+ } elsif ($fname =~ m"(?:^|/)files/[^/]*$") {
+ # Ok
} elsif (!is_emptydir($fname)) {
log_warning($fname, NO_LINE_NUMBER, "Unknown directory name.");
@@ -7117,6 +7119,8 @@ sub checkfile($) {
} elsif (!-T $fname) {
log_warning($fname, NO_LINE_NUMBER, "Unexpectedly found a binary file.");
+ } elsif ($fname =~ m"(?:^|/)files/[^/]*$") {
+ # Ok
} else {
log_warning($fname, NO_LINE_NUMBER, "Unexpected file found.");
$opt_check_extra and checkfile_extra($fname);