summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-06 13:42:47 +0000
committerrillig <rillig@pkgsrc.org>2006-01-06 13:42:47 +0000
commit8005613009e2b54f3ee0749897e2b9ef5ccea4da (patch)
tree0cf04a29fd52b89bbbd1d456d53f604f256265ed /pkgtools
parent1b4ae0895b85bbee0ff2bbbb1a49f1e66507f905 (diff)
downloadpkgsrc-8005613009e2b54f3ee0749897e2b9ef5ccea4da.tar.gz
- It is not an error to have symlinks in pkgsrc -- just a warning. Any
directory entry besides regular files, directories and symlinks is still an error.
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 3c435630bf5..5d2ced98c5f 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@ -w
-# $NetBSD: pkglint.pl,v 1.449 2006/01/02 10:09:03 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.450 2006/01/06 13:42:47 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -3258,6 +3258,11 @@ sub checkfile($) {
log_warning($fname, NO_LINE_NUMBER, "Unknown directory name.");
}
+ } elsif (S_ISLNK($st->mode)) {
+ if ($basename !~ qr"^work") {
+ log_warning($fname, NO_LINE_NUMBER, "Unknown symlink name.");
+ }
+
} elsif (!S_ISREG($st->mode)) {
log_error($fname, NO_LINE_NUMBER, "Only files and directories are allowed in pkgsrc.");