summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgchk/Makefile6
-rwxr-xr-xpkgtools/pkgchk/files/pkgchk.sh12
2 files changed, 10 insertions, 8 deletions
diff --git a/pkgtools/pkgchk/Makefile b/pkgtools/pkgchk/Makefile
index 7e4d4579d0f..97b9edbb323 100644
--- a/pkgtools/pkgchk/Makefile
+++ b/pkgtools/pkgchk/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/07/02 14:12:29 abs Exp $
+# $NetBSD: Makefile,v 1.2 2001/07/02 15:28:44 abs Exp $
#
-DISTNAME= pkgchk-1.00
-CATEGORIES= pkgtools devel
+DISTNAME= pkgchk-1.01
+CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkgchk/files/pkgchk.sh b/pkgtools/pkgchk/files/pkgchk.sh
index 68011dd3d6e..4f8bd5bf9f5 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.1.1.1 2001/07/02 14:12:30 abs Exp $
+# $Id: pkgchk.sh,v 1.2 2001/07/02 15:28:44 abs Exp $
extract_variables()
{
@@ -34,10 +34,6 @@ extract_variables()
if [ -z "$PKGCHK_CONF" ];then
PKGCHK_CONF=$PKGSRCDIR/pkgchk.conf
fi
- if [ ! -r $PKGCHK_CONF ];then
- echo "Unable to read PKGCHK_CONF '$PKGCHK_CONF'"
- exit 1;
- fi
}
pkg_install()
@@ -122,6 +118,12 @@ if [ -n "$opt_i" ];then
fi
if [ -n "$opt_c" ];then
+
+ if [ ! -r $PKGCHK_CONF ];then
+ echo "Unable to read PKGCHK_CONF '$PKGCHK_CONF'"
+ exit 1;
+ fi
+
# Determine list of tags
#
TAGS="`hostname -s`,`hostname`,`uname -srm | awk '{print $1"-"$2"-"$3","$1"-"$2","$1"-"$3","$1","$2","$3}'`"