diff options
author | abs <abs@pkgsrc.org> | 2008-12-20 09:50:59 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-12-20 09:50:59 +0000 |
commit | d84ad5c936e4af79e0c35d9ce09e20d40006308f (patch) | |
tree | 03aeb6f262f384bd7e4abce40a8cc5984afb5338 /pkgtools | |
parent | 3e2ca867c0a4c2504c16a29234f191a40cf91c03 (diff) | |
download | pkgsrc-d84ad5c936e4af79e0c35d9ce09e20d40006308f.tar.gz |
Updated pkgtools/pkg_chk to 1.96
Handle unset PKGSRCDIR - from Taylor R Campbell in PR/39306
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_chk/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkg_chk/files/pkg_chk.sh | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile index dd19739006b..b45dee46e5b 100644 --- a/pkgtools/pkg_chk/Makefile +++ b/pkgtools/pkg_chk/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.68 2008/07/05 22:56:40 abs Exp $ +# $NetBSD: Makefile,v 1.69 2008/12/20 09:50:59 abs Exp $ -DISTNAME= pkg_chk-1.95 +DISTNAME= pkg_chk-1.96 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkg_chk/files/pkg_chk.sh b/pkgtools/pkg_chk/files/pkg_chk.sh index f3e33ea77fc..3928b3978fa 100755 --- a/pkgtools/pkg_chk/files/pkg_chk.sh +++ b/pkgtools/pkg_chk/files/pkg_chk.sh @@ -1,6 +1,6 @@ #!@SH@ -e # -# $Id: pkg_chk.sh,v 1.60 2008/07/05 22:56:40 abs Exp $ +# $Id: pkg_chk.sh,v 1.61 2008/12/20 09:50:59 abs Exp $ # # TODO: Make -g check dependencies and tsort # TODO: Make -g list user-installed packages first, followed by commented @@ -172,7 +172,7 @@ extract_variables() fi done fi - if [ ! -d $PKGSRCDIR -a \( -z "$opt_b" -o -n "$opt_s" \) ] ; then + if [ ! -d "$PKGSRCDIR" -a \( -z "$opt_b" -o -n "$opt_s" \) ] ; then fatal "Unable to locate PKGSRCDIR (${PKGSRCDIR:-not set})" fi @@ -377,7 +377,7 @@ pkgdirs_from_conf() # Determine list of tags # - if [ $PKGSRCDIR = NONE ]; then + if [ "$PKGSRCDIR" = NONE ]; then OPSYS=$(uname -s) OS_VERSION=$(uname -r) MACHINE_ARCH=$(uname -p) |