pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint Report trailing slash of the package ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/80a0cf168055
branches: trunk
changeset: 483242:80a0cf168055
user: seb <seb%pkgsrc.org@localhost>
date: Tue Nov 09 17:14:43 2004 +0000
description:
Report trailing slash of the package directory part of *_DEPENDS specification
as a fatal error as this greatly confuses mk/scripts/mkdatabase.
Update to version 3.97.
diffstat:
pkgtools/pkglint/Makefile | 4 ++--
pkgtools/pkglint/files/pkglint.pl | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 921a769a11fa -r 80a0cf168055 pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Tue Nov 09 16:44:49 2004 +0000
+++ b/pkgtools/pkglint/Makefile Tue Nov 09 17:14:43 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.210 2004/11/04 21:17:40 he Exp $
+# $NetBSD: Makefile,v 1.211 2004/11/09 17:14:43 seb Exp $
#
-DISTNAME= pkglint-3.96
+DISTNAME= pkglint-3.97
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 921a769a11fa -r 80a0cf168055 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Nov 09 16:44:49 2004 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Nov 09 17:14:43 2004 +0000
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.123 2004/11/04 21:17:40 he Exp $
+# $NetBSD: pkglint.pl,v 1.124 2004/11/09 17:14:43 seb Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf%netbsd.org@localhost>,
@@ -1778,6 +1778,9 @@
my @m = split(/:/, $k);
if ($#m >= 1) {
$m[1] =~ s/\${PKGSRCDIR}/$ENV{'PKGSRCDIR'}/;
+ if ($m[1] =~ /\/$/) {
+ log_error(NO_FILE, NO_LINE_NUMBER, "trailing '/' (slash) for directory $m[1] listed in $j.");
+ }
if (! -d "$opt_packagedir/$m[1]") {
log_warning(NO_FILE, NO_LINE_NUMBER, "no package directory $m[1] found, even though it is listed in $j.");
} else {
Home |
Main Index |
Thread Index |
Old Index