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 | 8091e8ca7d700797c8aea42e2f1d0bb307e05fb5 (patch) | |
tree | 27bbaf4de8eb01ab953986d8a9c60d485f86f35f /pkgtools | |
parent | 3ee16c507116dd4324ccf09c338f3021c9e81b01 (diff) | |
download | pkgsrc-8091e8ca7d700797c8aea42e2f1d0bb307e05fb5.tar.gz |
The global variables are only needed when checking a package, not a
package category.
Diffstat (limited to 'pkgtools')
-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."); |