pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc update pkg_chk to 1.57



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5b621a8f5a7
branches:  trunk
changeset: 492857:e5b621a8f5a7
user:      abs <abs%pkgsrc.org@localhost>
date:      Wed Apr 20 15:32:25 2005 +0000

description:
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:

 doc/CHANGES                       |   4 +++-
 pkgtools/pkg_chk/Makefile         |   4 ++--
 pkgtools/pkg_chk/files/pkg_chk.sh |  10 +++++++---
 3 files changed, 12 insertions(+), 6 deletions(-)

diffs (60 lines):

diff -r 28c1a984f414 -r e5b621a8f5a7 doc/CHANGES
--- a/doc/CHANGES       Wed Apr 20 15:31:11 2005 +0000
+++ b/doc/CHANGES       Wed Apr 20 15:32:25 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.9931 2005/04/20 15:31:11 wiz Exp $
+$NetBSD: CHANGES,v 1.9932 2005/04/20 15:33:00 abs Exp $
 
 Changes to the packages collection and infrastructure in 2005:
 
@@ -2136,3 +2136,5 @@
        Updated p5-razor-agents to 2.67 [heinz 2005-04-20]
        Updated DatLib to 2.5 [wiz 2005-04-20]
        Updated DatUtil to 2.17 [wiz 2005-04-20]
+       Updated pkg_chk to 1.57 [abs 2005-04-20]
+
diff -r 28c1a984f414 -r e5b621a8f5a7 pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Wed Apr 20 15:31:11 2005 +0000
+++ b/pkgtools/pkg_chk/Makefile Wed Apr 20 15:32:25 2005 +0000
@@ -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 -r 28c1a984f414 -r e5b621a8f5a7 pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Wed Apr 20 15:31:11 2005 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Wed Apr 20 15:32:25 2005 +0000
@@ -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 @@
        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 @@
     if [ -n "$opt_L" ] ; then
        echo "$@" >> "$opt_L"
     fi
-    echo "$@"
+    if [ -n "$opt_l" ] ; then
+       echo "$@" >&2
+    else
+       echo "$@"
+    fi
     }
 
 msg_progress()



Home | Main Index | Thread Index | Old Index