summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorabs <abs>2004-09-03 10:19:17 +0000
committerabs <abs>2004-09-03 10:19:17 +0000
commitfd704186d9469bcd24bedffb3613ddd88eb59761 (patch)
treec88e1800b37c9950f4bb97977f4fd96c7886b2de /pkgtools
parent8018538aed302419d0bd4b4fc1a89d91eb79f7f3 (diff)
downloadpkgsrc-fd704186d9469bcd24bedffb3613ddd88eb59761.tar.gz
Update pkg_chk to 1.51:
Rather than leaving -- as the only argument and checking for one argument, shift it away and check for zero remaining arguments.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_chk/Makefile4
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh6
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile
index 98501a3baa0..0479ee3f7c6 100644
--- a/pkgtools/pkg_chk/Makefile
+++ b/pkgtools/pkg_chk/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2004/08/28 23:10:34 grant Exp $
+# $NetBSD: Makefile,v 1.8 2004/09/03 10:19:17 abs Exp $
-DISTNAME= pkg_chk-1.50
+DISTNAME= pkg_chk-1.51
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 0da91e3862d..f417615540c 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.7 2004/08/28 23:10:34 grant Exp $
+# $Id: pkg_chk.sh,v 1.8 2004/09/03 10:19:17 abs Exp $
#
# TODO: Handle updates with dependencies via binary packages
@@ -333,7 +333,7 @@ while [ $# != 0 ]; do
-s ) opt_s=1 ;;
-u ) opt_u=1 ; opt_i=1 ;;
-v ) opt_v=1 ;;
- -- ) break ;;
+ -- ) shift; break ;;
esac
shift
done
@@ -348,7 +348,7 @@ if [ -z "$opt_a" -a -z "$opt_c" -a -z "$opt_g" -a -z "$opt_i" -a -z "$opt_l" ];t
opt_h=1;
fi
-if [ -n "$opt_h" -o $# != 1 ];then
+if [ -n "$opt_h" -o $# != 0 ];then
echo 'Usage: pkg_chk [opts]
-B Check the "Build version" of packages (implies -i)
-C conf Use pkgchk.conf file 'conf'