summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_chk
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2008-04-23 21:55:29 +0000
committerabs <abs@pkgsrc.org>2008-04-23 21:55:29 +0000
commit9c009a0256bfda2c44e3cf49b62a17f72252eb34 (patch)
tree20216d6ac1c7b6ab60868f1367aefb80caa447ba /pkgtools/pkg_chk
parentfa4a5fab61582b89e84d4e4cbd39684d0ca6f0d6 (diff)
downloadpkgsrc-9c009a0256bfda2c44e3cf49b62a17f72252eb34.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
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, 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
}