From 9c009a0256bfda2c44e3cf49b62a17f72252eb34 Mon Sep 17 00:00:00 2001 From: abs Date: Wed, 23 Apr 2008 21:55:29 +0000 Subject: update pkg_chk to 1.91: - Use a local pkg_summary.gz iff it is the most recently modified file in the PACKAGES/All directory --- pkgtools/pkg_chk/Makefile | 4 ++-- pkgtools/pkg_chk/files/pkg_chk.sh | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile index b9b65704b76..7df350f3972 100644 --- a/pkgtools/pkg_chk/Makefile +++ b/pkgtools/pkg_chk/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.59 2008/02/24 21:58:13 abs Exp $ +# $NetBSD: Makefile,v 1.60 2008/04/23 21:55:29 abs Exp $ -DISTNAME= pkg_chk-1.90 +DISTNAME= pkg_chk-1.91 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 510defc3cb1..65271bc367a 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.55 2008/02/24 21:58:13 abs Exp $ +# $Id: pkg_chk.sh,v 1.56 2008/04/23 21:55:29 abs Exp $ # # TODO: Make -g check dependencies and tsort # TODO: Variation of -g which only lists top level packages @@ -241,6 +241,14 @@ generate_conf_from_installed() get_bin_pkg_info() { + summary_file=$PACKAGES/$SUMMARY_FILE + if [ -f $summary_file ] ; then + if [ -z "$(find $PACKAGES -type f -newer $summary_file)" ] ; then + zcat $summary_file + return; + fi + echo "*** Ignoring $SUMMARY_FILE as PACKAGES contains newer files" >&2 + fi list_bin_pkgs | ${XARGS} ${PKG_INFO} -X } -- cgit v1.2.3