summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_chk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2007-04-20 09:50:21 +0000
committertron <tron@pkgsrc.org>2007-04-20 09:50:21 +0000
commit6d3f802271e44fb9d53f8ed1359da067ee9d94a1 (patch)
tree0e717c62fa54835b8c3db1af0760d36ea1597ee2 /pkgtools/pkg_chk
parentf58745f955316bf29d101a95f9465b8017bd3743 (diff)
downloadpkgsrc-6d3f802271e44fb9d53f8ed1359da067ee9d94a1.tar.gz
Checking whether a file with an blank filename exists is somewhat bogus.
Improve the last change to avoid that. Bump package revision again.
Diffstat (limited to 'pkgtools/pkg_chk')
-rw-r--r--pkgtools/pkg_chk/Makefile4
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile
index ff1040d4500..8d48c42bb98 100644
--- a/pkgtools/pkg_chk/Makefile
+++ b/pkgtools/pkg_chk/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2007/04/20 09:25:36 tron Exp $
+# $NetBSD: Makefile,v 1.51 2007/04/20 09:50:21 tron Exp $
DISTNAME= pkg_chk-1.85
-PKGREVISION= 2
+PKGREVISION= 3
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 c343d1d4bab..31fb3f7eb30 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.47 2007/04/20 09:25:37 tron Exp $
+# $Id: pkg_chk.sh,v 1.48 2007/04/20 09:50:21 tron Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Variation of -g which only lists top level packages
@@ -701,7 +701,7 @@ test -n "$SED" || SED="@SED@"
test -n "$SORT" || SORT="@SORT@"
test -n "$TSORT" || TSORT="@TSORT@"
-if [ ! -f "$MAKECONF" ] ; then
+if [ -z "$MAKECONF" -o ! -f "$MAKECONF" ] ; then
if [ -f @PREFIX@/etc/mk.conf ] ; then
MAKECONF=@PREFIX@/etc/mk.conf
elif [ -f /etc/mk.conf ] ; then