summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-05-07 22:21:23 +0000
committerrillig <rillig@pkgsrc.org>2005-05-07 22:21:23 +0000
commit69bf1568b2873c65a67ad9de35f128ce642e5fe0 (patch)
treec341c4488aab84ee51072b139d457a7852a94f0f /pkgtools/pkglint
parent85c193540379af2605ee8f7462f6fcb436f3e9c4 (diff)
downloadpkgsrc-69bf1568b2873c65a67ad9de35f128ce642e5fe0.tar.gz
When detecting the pkgsrc root directory, don't rely on Packages.txt, as
that will be removed soon. Approved by wiz.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 56246108b23..a0d433b3518 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.143 2005/05/07 21:22:40 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.144 2005/05/07 22:21:23 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -526,11 +526,11 @@ sub main() {
log_info(NO_FILE, NO_LINE_NUMBER, "rcsidstr: $conf_rcsidstr");
log_info(NO_FILE, NO_LINE_NUMBER, "localbase: $conf_localbase");
- if (-f "$opt_packagedir/../Packages.txt") {
+ if (-f "$opt_packagedir/../mk/bsd.pkg.mk") {
$pkgsrc_rootdir = "$opt_packagedir/..";
log_info(NO_FILE, NO_LINE_NUMBER, "checking category Makefile.");
category_check();
- } elsif (-f "$opt_packagedir/../../Packages.txt") {
+ } elsif (-f "$opt_packagedir/../../mk/bsd.pkg.mk") {
$pkgsrc_rootdir = "$opt_packagedir/../..";
load_predefined_sites();
check_package();