diff options
author | rillig <rillig@pkgsrc.org> | 2005-07-30 23:35:24 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-07-30 23:35:24 +0000 |
commit | e04e80290995b443b1c18a6f0f91f60bcd3bc78e (patch) | |
tree | 27bbaf4de8eb01ab953986d8a9c60d485f86f35f | |
parent | 1d83cbe5feb285ecfaa2c6d1e71244e006f3d29d (diff) | |
download | pkgsrc-e04e80290995b443b1c18a6f0f91f60bcd3bc78e.tar.gz |
The global variables are only needed when checking a package, not a
package category.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index f9e7332fb1f..6ff162de6f1 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.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 load_predefined_sites($) { 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 @@ sub check_package($) { 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."); |