summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_chk
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2005-04-20 15:32:25 +0000
committerabs <abs@pkgsrc.org>2005-04-20 15:32:25 +0000
commitfa2b344c7b8eb6e1d5fb9a667876f6f9c8bcfbff (patch)
treee7c85ea35e28b509d561e3a71e9dda23dde7a799 /pkgtools/pkg_chk
parenta0eef3d5324788ffe3814033365de041c18785e3 (diff)
downloadpkgsrc-fa2b344c7b8eb6e1d5fb9a667876f6f9c8bcfbff.tar.gz
update pkg_chk to 1.57
Two fixes to -l (list required binary packages to stdout) a) If a dependency is missing, display its name correctly b) Display any progress to stderr not stdout (for obvious reasons)
Diffstat (limited to 'pkgtools/pkg_chk')
-rw-r--r--pkgtools/pkg_chk/Makefile4
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh10
2 files changed, 9 insertions, 5 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile
index 9bfdf2977b8..5cd1ea1a0a0 100644
--- a/pkgtools/pkg_chk/Makefile
+++ b/pkgtools/pkg_chk/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2005/02/28 00:43:48 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2005/04/20 15:32:25 abs Exp $
-DISTNAME= pkg_chk-1.56
+DISTNAME= pkg_chk-1.57
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 5de738124ca..dd22c0ed57c 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.13 2005/02/28 00:43:48 wiz Exp $
+# $Id: pkg_chk.sh,v 1.14 2005/04/20 15:32:25 abs Exp $
#
# TODO: Handle updates with dependencies via binary packages
@@ -212,7 +212,7 @@ list_packages()
NEXTCHECK=' '
for pkg in $CHECKLIST ; do
if [ ! -f $PACKAGES/$pkg.tgz ] ; then
- fatal_maybe " ** $PKGNAME - binary package (dependency) missing"
+ fatal_maybe " ** $pkg.tgz - binary package dependency missing"
continue
fi
for dep in $(${PKG_INFO} -. -N $PACKAGES/$pkg.tgz | ${SED} '1,/Built using:/d' | ${GREP} ..) ; do
@@ -239,7 +239,11 @@ msg()
if [ -n "$opt_L" ] ; then
echo "$@" >> "$opt_L"
fi
- echo "$@"
+ if [ -n "$opt_l" ] ; then
+ echo "$@" >&2
+ else
+ echo "$@"
+ fi
}
msg_progress()