summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-04-17 17:26:40 +0000
committerseb <seb@pkgsrc.org>2004-04-17 17:26:40 +0000
commite29c7652a08e96f1a6b041395f1bf84829fbc81a (patch)
treec598f16be09237475fd405ed7456f23887c82d30 /pkgtools
parent920fbcee7c117323f8bd2081b67dae37ecba23b8 (diff)
downloadpkgsrc-e29c7652a08e96f1a6b041395f1bf84829fbc81a.tar.gz
Update to version 3.72.
Use more portable Cwd::cwd() instead of $ENV{'PWD'}
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
2 files changed, 5 insertions, 4 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 9846fa1c572..5d01b3934a7 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.183 2004/04/15 09:41:22 jmmv Exp $
+# $NetBSD: Makefile,v 1.184 2004/04/17 17:26:40 seb Exp $
#
-DISTNAME= pkglint-3.71
+DISTNAME= pkglint-3.72
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index e4dbf5f234d..5041c23aaff 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.101 2004/04/15 09:41:22 jmmv Exp $
+# $NetBSD: pkglint.pl,v 1.102 2004/04/17 17:26:40 seb Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -22,6 +22,7 @@
use Getopt::Std;
use File::Basename;
use FileHandle;
+use Cwd;
$err = $warn = 0;
$extrafile = $parenwarn = $committer = 1; # -abc
@@ -84,7 +85,7 @@ if (-e <$portdir/../Packages.txt>) {
if (-e <$portdir/../../Packages.txt>) {
if ($portdir eq ".") {
- $category = basename(dirname($ENV{'PWD'}));
+ $category = basename(dirname(cwd()));
} else {
$category = basename(dirname($portdir));
}