pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk Make it work with pkg_install tools t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97db4237f85f
branches:  trunk
changeset: 488472:97db4237f85f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Feb 01 20:44:48 2005 +0000

description:
Make it work with pkg_install tools that do not search
the file system by default. Replace one pkg_info with ${PKG_INFO}.
Welcome to 1.54!
Okayed by abs@.

diffstat:

 pkgtools/pkg_chk/Makefile         |  4 ++--
 pkgtools/pkg_chk/files/pkg_chk.sh |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r ed993530f07f -r 97db4237f85f pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Tue Feb 01 19:15:28 2005 +0000
+++ b/pkgtools/pkg_chk/Makefile Tue Feb 01 20:44:48 2005 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2005/01/29 15:36:30 abs Exp $
+# $NetBSD: Makefile,v 1.11 2005/02/01 20:44:48 wiz Exp $
 
-DISTNAME=      pkg_chk-1.53
+DISTNAME=      pkg_chk-1.54
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r ed993530f07f -r 97db4237f85f pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Tue Feb 01 19:15:28 2005 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Tue Feb 01 20:44:48 2005 +0000
@@ -1,6 +1,6 @@
 #!@SH@ -e
 #
-# $Id: pkg_chk.sh,v 1.10 2005/01/29 15:36:30 abs Exp $
+# $Id: pkg_chk.sh,v 1.11 2005/02/01 20:44:48 wiz Exp $
 #
 # TODO: Handle updates with dependencies via binary packages
 
@@ -215,7 +215,7 @@
                fatal_maybe " ** $PKGNAME - binary package (dependency) missing"
                continue
            fi
-           for dep in $(pkg_info -N $PACKAGES/$pkg.tgz | ${SED} '1,/Built using:/d' | ${GREP} ..) ; do
+           for dep in $(${PKG_INFO} -. -N $PACKAGES/$pkg.tgz | ${SED} '1,/Built using:/d' | ${GREP} ..) ; do
                case "$PKGLIST$NEXTCHECK" in
                    *\ $dep\ *)
                        verbose "$pkg: Duplicate depend $dep"
@@ -495,7 +495,7 @@
     msg_progress Scan $PACKAGES
     cd $PACKAGES
     for f in `ls -t *.tgz` ; do # Sort by time to pick up newest first
-       PKGDIR=`${PKG_INFO} -B $PACKAGES/$f|${AWK} -F= '$1=="PKGPATH"{print $2}'`
+       PKGDIR=`${PKG_INFO} -. -B $PACKAGES/$f|${AWK} -F= '$1=="PKGPATH"{print $2}'`
        PKGNAME=`echo $f | ${SED} 's/\.tgz$//'`
        PKGDB="${PKGDB} $PKGDIR:$PKGNAME"
     done



Home | Main Index | Thread Index | Old Index