pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk Updated pkgtools/pkg_chk to 1.96



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d5b9a8a90dd5
branches:  trunk
changeset: 551801:d5b9a8a90dd5
user:      abs <abs%pkgsrc.org@localhost>
date:      Sat Dec 20 09:50:59 2008 +0000

description:
Updated pkgtools/pkg_chk to 1.96

Handle unset PKGSRCDIR - from Taylor R Campbell in PR/39306

diffstat:

 pkgtools/pkg_chk/Makefile         |  4 ++--
 pkgtools/pkg_chk/files/pkg_chk.sh |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 0b5b673a542f -r d5b9a8a90dd5 pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Sat Dec 20 09:27:59 2008 +0000
+++ b/pkgtools/pkg_chk/Makefile Sat Dec 20 09:50:59 2008 +0000
@@ -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 -r 0b5b673a542f -r d5b9a8a90dd5 pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Sat Dec 20 09:27:59 2008 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Sat Dec 20 09:50:59 2008 +0000
@@ -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 @@
            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 @@
 
     # Determine list of tags
     #
-    if [ $PKGSRCDIR = NONE ]; then
+    if [ "$PKGSRCDIR" = NONE ]; then
        OPSYS=$(uname -s)
        OS_VERSION=$(uname -r)
        MACHINE_ARCH=$(uname -p)



Home | Main Index | Thread Index | Old Index