pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - It is not an error to have sy...
details: https://anonhg.NetBSD.org/pkgsrc/rev/22e19b5a61f0
branches: trunk
changeset: 505696:22e19b5a61f0
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Jan 06 13:42:47 2006 +0000
description:
- 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:
pkgtools/pkglint/files/pkglint.pl | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 94d1180aef33 -r 22e19b5a61f0 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Fri Jan 06 13:02:00 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Fri Jan 06 13:42:47 2006 +0000
@@ -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 @@
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.");
Home |
Main Index |
Thread Index |
Old Index