From fa69af438a5535d1d808a5b76c989685a1a93c58 Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 8 Oct 2002 11:43:33 +0000 Subject: Update pkg_chk to 1.33: Work around a deficiency in the 1.6 pkg_add - cd to the directory containing a binary package before running pkg_add, to ensure it can pick up dependencies. --- pkgtools/pkgchk/Makefile | 4 ++-- pkgtools/pkgchk/files/pkgchk.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkgchk/Makefile b/pkgtools/pkgchk/Makefile index 15b9d955486..85751f7a8a7 100644 --- a/pkgtools/pkgchk/Makefile +++ b/pkgtools/pkgchk/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.34 2002/09/13 11:45:03 abs Exp $ +# $NetBSD: Makefile,v 1.35 2002/10/08 11:43:33 abs Exp $ -DISTNAME= pkgchk-1.32 +DISTNAME= pkgchk-1.33 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkgchk/files/pkgchk.sh b/pkgtools/pkgchk/files/pkgchk.sh index a2b7b5e0a21..20fae542056 100755 --- a/pkgtools/pkgchk/files/pkgchk.sh +++ b/pkgtools/pkgchk/files/pkgchk.sh @@ -1,6 +1,6 @@ #!/bin/sh -e # -# $Id: pkgchk.sh,v 1.35 2002/09/13 11:45:03 abs Exp $ +# $Id: pkgchk.sh,v 1.36 2002/10/08 11:43:34 abs Exp $ # # TODO: Handle updates with dependencies via binary packages @@ -174,7 +174,7 @@ pkg_install() fi fi export PKG_PATH=$saved_PKG_PATH - run_cmd "${PKG_ADD} $PACKAGES/All/$PKGNAME.tgz" + run_cmd "cd $PACKAGES/All && ${PKG_ADD} $PKGNAME.tgz" unset PKG_PATH elif [ -n "$opt_s" ]; then run_cmd "cd $PKGSRCDIR/$PKGDIR && ${MAKE} update" -- cgit v1.2.3