summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_chk
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-12 21:17:16 +0000
committerjoerg <joerg>2006-01-12 21:17:16 +0000
commit06bae1869afda98bc2ca93760774300aa42c1bb9 (patch)
tree49d99b1d10f0fcb1f0c3a5555ffc2f2c26c311ca /pkgtools/pkg_chk
parent87a056cd3d88bfd631d98dc4dc5c64767c9a9d99 (diff)
downloadpkgsrc-06bae1869afda98bc2ca93760774300aa42c1bb9.tar.gz
When creating the sorted list of binary packages, "ls -t *.tgz" can
easily overflow the argument space e.g. on DragonFly. Replace this statement with "ls -t | grep '\.tgz$'" to remove this constraint.
Diffstat (limited to 'pkgtools/pkg_chk')
-rw-r--r--pkgtools/pkg_chk/Makefile4
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkg_chk/Makefile b/pkgtools/pkg_chk/Makefile
index 4181298a026..256fbf612bc 100644
--- a/pkgtools/pkg_chk/Makefile
+++ b/pkgtools/pkg_chk/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2006/01/03 19:00:09 abs Exp $
+# $NetBSD: Makefile,v 1.24 2006/01/12 21:17:16 joerg Exp $
-DISTNAME= pkg_chk-1.64
+DISTNAME= pkg_chk-1.65
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 d6afe01a501..cf30fd27fdd 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.24 2006/01/03 19:00:09 abs Exp $
+# $Id: pkg_chk.sh,v 1.25 2006/01/12 21:17:16 joerg Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Variation of -g which only lists top level packages
@@ -703,7 +703,7 @@ if [ \( -n "$opt_b" -o -n "$opt_S" \) -a -z "$opt_s" ] ; then
if [ -d "$PACKAGES" ] ; then
msg_progress Scan $PACKAGES
cd $PACKAGES
- for f in `ls -t *.tgz` ; do # Sort by time to pick up newest first
+ for f in `ls -t | grep '\.tgz$'` ; do # Sort by time to pick up newest first
PKGDIR=`${PKG_INFO} -. -B $PACKAGES/$f|${AWK} -F= '$1=="PKGPATH"{print $2}'`
PKGNAME=`echo $f | ${SED} 's/\.tgz$//'`
PKGDB="${PKGDB} $PKGDIR:$PKGNAME"