pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files The global variables are only n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f36fcc5ba6d9
branches: trunk
changeset: 497579:f36fcc5ba6d9
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Jul 30 23:35:24 2005 +0000
description:
The global variables are only needed when checking a package, not a
package category.
diffstat:
pkgtools/pkglint/files/pkglint.pl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r cf6e10499f29 -r f36fcc5ba6d9 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Jul 30 22:07:38 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Jul 30 23:35:24 2005 +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.217 2005/07/29 16:01:13 he Exp $
+# $NetBSD: pkglint.pl,v 1.218 2005/07/30 23:35:24 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -565,7 +565,6 @@
sub check_directory($) {
my ($dir) = @_;
- init_global_vars();
if (-f "${dir}/../mk/bsd.pkg.mk") {
log_info(NO_FILE, NO_LINE_NUMBER, "Checking category Makefile.");
check_category($dir);
@@ -595,6 +594,8 @@
my ($whole, $lines);
+ init_global_vars();
+
# we need to handle the Makefile first to get some variables
if (!load_package_Makefile($dir, "${dir}/Makefile", \$whole, \$lines)) {
log_error("${dir}/Makefile", NO_LINE_NUMBER, "Cannot be read.");
Home |
Main Index |
Thread Index |
Old Index