diff options
-rw-r--r-- | pkgtools/pkgchk/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkgchk/files/pkgchk.sh | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/pkgtools/pkgchk/Makefile b/pkgtools/pkgchk/Makefile index 85751f7a8a7..8d4505a37b7 100644 --- a/pkgtools/pkgchk/Makefile +++ b/pkgtools/pkgchk/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.35 2002/10/08 11:43:33 abs Exp $ +# $NetBSD: Makefile,v 1.36 2002/10/08 15:44:13 abs Exp $ -DISTNAME= pkgchk-1.33 +DISTNAME= pkgchk-1.34 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkgchk/files/pkgchk.sh b/pkgtools/pkgchk/files/pkgchk.sh index 20fae542056..48430062964 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.36 2002/10/08 11:43:34 abs Exp $ +# $Id: pkgchk.sh,v 1.37 2002/10/08 15:44:14 abs Exp $ # # TODO: Handle updates with dependencies via binary packages @@ -173,9 +173,13 @@ pkg_install() exit 1 fi fi - export PKG_PATH=$saved_PKG_PATH + if [ -n "$saved_PKG_PATH" ] ; then + export PKG_PATH=$saved_PKG_PATH + fi run_cmd "cd $PACKAGES/All && ${PKG_ADD} $PKGNAME.tgz" - unset PKG_PATH + if [ -n "$saved_PKG_PATH" ] ; then + unset PKG_PATH + fi elif [ -n "$opt_s" ]; then run_cmd "cd $PKGSRCDIR/$PKGDIR && ${MAKE} update" fi |