From fd704186d9469bcd24bedffb3613ddd88eb59761 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 3 Sep 2004 10:19:17 +0000 Subject: 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. --- pkgtools/pkg_chk/Makefile | 4 ++-- pkgtools/pkg_chk/files/pkg_chk.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pkgtools') 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' -- cgit v1.2.3