summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_chk/files/pkg_chk.sh
diff options
context:
space:
mode:
authorabs <abs>2009-03-25 00:00:52 +0000
committerabs <abs>2009-03-25 00:00:52 +0000
commiteaba1ddd7ad8effedde1d2e5bd57e19f22cb1fc1 (patch)
tree2983fa103a267af55e956086a1f740fa26f35075 /pkgtools/pkg_chk/files/pkg_chk.sh
parentb6681f56ea7e8abcbef276566d64382a20ee62f6 (diff)
downloadpkgsrc-eaba1ddd7ad8effedde1d2e5bd57e19f22cb1fc1.tar.gz
Updated pkgtools/pkg_chk to 1.98
- Avoid using -. to pkg_info - Indicate when using a pkg_summary.gz rather than running pkg_info -X on all binary packages
Diffstat (limited to 'pkgtools/pkg_chk/files/pkg_chk.sh')
-rwxr-xr-xpkgtools/pkg_chk/files/pkg_chk.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgtools/pkg_chk/files/pkg_chk.sh b/pkgtools/pkg_chk/files/pkg_chk.sh
index 6f79fd0460e..69d751f1ef4 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.62 2009/02/21 20:50:06 abs Exp $
+# $Id: pkg_chk.sh,v 1.63 2009/03/25 00:00:52 abs Exp $
#
# TODO: Make -g check dependencies and tsort
# TODO: Make -g list user-installed packages first, followed by commented
@@ -257,22 +257,24 @@ get_bin_pkg_info()
summary_file=$PACKAGES/$SUMMARY_FILE
if [ -f $summary_file ] ; then
if [ -z "$(find $PACKAGES -type f -newer $summary_file -name '*.t[bg]z')" ] ; then
+ msg_progress Reading $summary_file
zcat $summary_file
return;
fi
echo "*** Ignoring $SUMMARY_FILE as PACKAGES contains newer files" >&2
fi
+ msg_progress Scan $PACKAGES
list_bin_pkgs | ${XARGS} ${PKG_INFO} -X
}
get_build_ver()
{
if [ -n "$opt_b" -a -z "$opt_s" ] ; then
- ${PKG_INFO} -. -q -b $PACKAGES/$PKGNAME$PKG_SUFX | ${GREP} .
+ ${PKG_INFO} -q -b $PACKAGES/$PKGNAME$PKG_SUFX | ${GREP} .
return
fi
- # Unfortunately pkgsrc always outputs to a file, but it does helpfully
- # allows # us to specify the name
+ # Unfortunately pkgsrc always outputs to a file, but it does
+ # helpfully allows us to specify the name
rm -f $MY_TMPFILE
${MAKE} _BUILD_VERSION_FILE=$MY_TMPFILE $MY_TMPFILE
cat $MY_TMPFILE
@@ -289,7 +291,7 @@ list_bin_pkgs ()
#
list_dependencies()
{
- ${PKG_INFO} -. -q -n $1 | ${GREP} .. || true
+ ${PKG_INFO} -q -n $1 | ${GREP} .. || true
}
# Pass a list of pkgdirs, outputs a tsorted list including any dependencies
@@ -839,7 +841,6 @@ if [ -n "$opt_b" -a -z "$opt_s" ] ; then
fi;;
*)
if [ -d "$PACKAGES" ] ; then
- msg_progress Scan $PACKAGES
PKGDB=$(get_bin_pkg_info | bin_pkg_info2pkgdb)
PKGSRCDIR=NONE
fi;;