diff options
author | abs <abs> | 2008-12-20 09:50:59 +0000 |
---|---|---|
committer | abs <abs> | 2008-12-20 09:50:59 +0000 |
commit | beee542b3564225a27996118bcadcda150a24224 (patch) | |
tree | 03aeb6f262f384bd7e4abce40a8cc5984afb5338 /pkgtools/pkg_chk | |
parent | aaaf0319c56b72af9d87da6c7ccf479d9271dbb2 (diff) | |
download | pkgsrc-beee542b3564225a27996118bcadcda150a24224.tar.gz |
Updated pkgtools/pkg_chk to 1.96
Handle unset PKGSRCDIR - from Taylor R Campbell in PR/39306
Diffstat (limited to 'pkgtools/pkg_chk')
-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) |