diff options
author | wiz <wiz@pkgsrc.org> | 2002-03-22 15:57:53 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-03-22 15:57:53 +0000 |
commit | 20ab0bbf08261918e57254bf1ff9c741efb17acf (patch) | |
tree | 111b6b67c8310c470b823c9fc9c16e2e569719d4 /pkgtools/pkglint | |
parent | f41657dd8e0a27aecb9232ab160713f6c273283a (diff) | |
download | pkgsrc-20ab0bbf08261918e57254bf1ff9c741efb17acf.tar.gz |
Update to 3.24:
Report downlevel pkg_install version, too (in -i mode).
Requested by gendalia and agc.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkglint/files/lintpkgsrc.pl | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 8c08cbde86d..73d2f3b89a5 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.127 2002/02/27 11:20:59 abs Exp $ +# $NetBSD: Makefile,v 1.128 2002/03/22 15:57:53 wiz Exp $ # -DISTNAME= pkglint-3.23 +DISTNAME= pkglint-3.24 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl index 447df03e641..7aa732af7d5 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.65 2002/01/03 11:04:50 abs Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.66 2002/03/22 15:57:55 wiz Exp $ # Written by David Brownlee <abs@netbsd.org>. # @@ -494,11 +494,17 @@ sub listdir sub list_installed_packages { my(@pkgs); + my $pkgver; open(PKG_INFO, 'pkg_info -a|') || fail("Unable to run pkg_info: $!"); while ( <PKG_INFO> ) { push(@pkgs, (split)[0]); } close(PKG_INFO); + + # pkg_install is not in the pkg_info -a output, add it manually + $pkgver = `pkg_info -V 2>/dev/null || echo 20010302`; + chomp($pkgver); + push(@pkgs, "pkg_install-$pkgver"); @pkgs; } |