summaryrefslogtreecommitdiff
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
commit1cf0fd84c1d8350a51790a0101ad8c70e027f380 (patch)
tree0cf04a29fd52b89bbbd1d456d53f604f256265ed
parentab915116a16716d9f54a8ea9d565c6f650300229 (diff)
downloadpkgsrc-1cf0fd84c1d8350a51790a0101ad8c70e027f380.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.
-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.");