pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk update pkg_chk to 1.91:
details: https://anonhg.NetBSD.org/pkgsrc/rev/f0443e1f0e4d
branches: trunk
changeset: 541637:f0443e1f0e4d
user: abs <abs%pkgsrc.org@localhost>
date: Wed Apr 23 21:55:29 2008 +0000
description:
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:
pkgtools/pkg_chk/Makefile | 4 ++--
pkgtools/pkg_chk/files/pkg_chk.sh | 10 +++++++++-
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 0fbad2d85fb8 -r f0443e1f0e4d pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Wed Apr 23 21:44:55 2008 +0000
+++ b/pkgtools/pkg_chk/Makefile Wed Apr 23 21:55:29 2008 +0000
@@ -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 -r 0fbad2d85fb8 -r f0443e1f0e4d pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Wed Apr 23 21:44:55 2008 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Wed Apr 23 21:55:29 2008 +0000
@@ -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 @@
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
}
Home |
Main Index |
Thread Index |
Old Index