Update pkg_chk to 1.95:

- Handle pkgsrc in LOCALBASE - fixes PR pkg/32326
This commit is contained in:
abs 2008-07-05 22:56:40 +00:00
parent 58608772b6
commit 630a4e0ce1
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.67 2008/06/12 13:38:28 abs Exp $
# $NetBSD: Makefile,v 1.68 2008/07/05 22:56:40 abs Exp $
DISTNAME= pkg_chk-1.94
PKGREVISION= 1
DISTNAME= pkg_chk-1.95
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty

View file

@ -1,6 +1,6 @@
#!@SH@ -e
#
# $Id: pkg_chk.sh,v 1.59 2008/05/26 09:25:43 tron Exp $
# $Id: pkg_chk.sh,v 1.60 2008/07/05 22:56:40 abs Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Make -g list user-installed packages first, followed by commented
@ -160,8 +160,9 @@ extract_pkg_vars()
extract_variables()
{
extract_mk_var PKGSRCDIR ''
extract_mk_var LOCALBASE ''
if [ -z "$PKGSRCDIR" ] ; then
for dir in . .. ../.. /usr/pkgsrc ; do
for dir in $LOCALBASE/pkgsrc /usr/pkgsrc . .. ../.. ; do
if [ -f "${dir}/mk/bsd.pkg.mk" ]; then
case "${dir}" in
/*) PKGSRCDIR="${dir}" ;;