summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-04-22 10:18:22 +0000
committerwiz <wiz@pkgsrc.org>2003-04-22 10:18:22 +0000
commit62ad41c8b8be3503da17dee8dc4fabb76b647050 (patch)
treedb6a28038a1cba6f9a405579f7179809b2599fcc /pkgtools/pkglint
parent4a5957fb05aef113965b283c5917a710606ad1c0 (diff)
downloadpkgsrc-62ad41c8b8be3503da17dee8dc4fabb76b647050.tar.gz
3.52: Fix last in case the file exists (doh).
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl16
2 files changed, 10 insertions, 10 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 072340f2056..080d4a32a3e 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.157 2003/04/22 08:26:57 wiz Exp $
+# $NetBSD: Makefile,v 1.158 2003/04/22 10:18:22 wiz Exp $
#
-DISTNAME= pkglint-3.51
+DISTNAME= pkglint-3.52
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 8367c5c3adf..76f8e35d47e 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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.86 2003/04/22 08:26:57 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.87 2003/04/22 10:18:23 wiz Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -659,13 +659,13 @@ sub readmakefile {
$contents .= $_;
} else {
$dirname = dirname($file);
- if (not -e <$dirname/$includefile> ) {
- &perror("FATAL: can't read $dirname/$includefile");
- }
- else {
- print("OK: including $dirname/$includefile\n");
- $contents .= readmakefile("$dirname/$includefile");
- }
+ if (-e "$dirname/$includefile") {
+ print("OK: including $dirname/$includefile\n");
+ $contents .= readmakefile("$dirname/$includefile");
+ }
+ else {
+ &perror("FATAL: can't read $dirname/$includefile");
+ }
}
} else {
# we don't want the include Makefile.common lines