diff options
author | atatat <atatat> | 2002-09-30 16:08:17 +0000 |
---|---|---|
committer | atatat <atatat> | 2002-09-30 16:08:17 +0000 |
commit | 9cdb1370f151efa2afbae1873a9630bfe67e5972 (patch) | |
tree | 8db8c2566dba96bdf32e802321be05bb7ce22af8 /pkgtools/pkglint | |
parent | 2e9d993eabf0d813a988898863584669520a0f5b (diff) | |
download | pkgsrc-9cdb1370f151efa2afbae1873a9630bfe67e5972.tar.gz |
Upgrade to 3.36. Fixes the problem with $pkg_installver being
"uninitialized" for some cases. Approved by the wiz.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 064936afddb..eef31bc61e1 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.139 2002/09/25 09:34:21 wiz Exp $ +# $NetBSD: Makefile,v 1.140 2002/09/30 16:08:17 atatat Exp $ # -DISTNAME= pkglint-3.35 +DISTNAME= pkglint-3.36 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl index aeeac79ef02..292ec1514b5 100755 --- a/pkgtools/pkglint/files/lintpkgsrc.pl +++ b/pkgtools/pkglint/files/lintpkgsrc.pl @@ -1,6 +1,6 @@ #!@PREFIX@/bin/perl -# $NetBSD: lintpkgsrc.pl,v 1.70 2002/09/22 15:58:33 atatat Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.71 2002/09/30 16:08:18 atatat Exp $ # Written by David Brownlee <abs@netbsd.org>. # @@ -396,6 +396,8 @@ sub fail sub get_default_makefile_vars { + chomp($pkg_installver = `pkg_info -V 2>/dev/null || echo 20010302`); + chomp($_ = `uname -srm`); ( $default_vars->{OPSYS}, $default_vars->{OS_VERSION}, @@ -533,9 +535,7 @@ sub list_installed_packages close(PKG_INFO); # pkg_install is not in the pkg_info -a output, add it manually - $pkg_installver = $pkgver = `pkg_info -V 2>/dev/null || echo 20010302`; - chomp($pkgver); - push(@pkgs, "pkg_install-$pkgver"); + push(@pkgs, "pkg_install-$pkg_installver"); @pkgs; } |