diff options
author | abs <abs@pkgsrc.org> | 2008-04-23 21:55:29 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-04-23 21:55:29 +0000 |
commit | cae86f5932da0c07bcc693376a4175fd8fcd2b76 (patch) | |
tree | 20216d6ac1c7b6ab60868f1367aefb80caa447ba | |
parent | c9d27149bf9f5297606ce1b129458a97fe69aa74 (diff) | |
download | pkgsrc-cae86f5932da0c07bcc693376a4175fd8fcd2b76.tar.gz |
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
-rw-r--r-- | pkgtools/pkg_chk/Makefile | 4 | ||||
-rwxr-xr-x | 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 } |