1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Allow the location of the INDEX file to specified to pkg_version.

This is particularly convenient on a cluster of machines to prevent
having to rebuild the INDEX file on each.

Reviewed by:	portmgr
This commit is contained in:
Josef Karthauser 2004-05-19 09:18:08 +00:00
parent ecad688385
commit bb1e7a5e19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129424
2 changed files with 2 additions and 1 deletions

View File

@ -204,6 +204,7 @@ weekly_noid_dirs="/" # Look here
# 400.status-pkg
weekly_status_pkg_enable="NO" # Find out-of-date pkgs
pkg_version=pkg_version # Use this program
pkg_version_index=/usr/ports/INDEX-5 # Use this index file
# 999.local
weekly_local="/etc/weekly.local" # Local scripts

View File

@ -16,7 +16,7 @@ case "$weekly_status_pkg_enable" in
echo ""
echo "Check for out of date packages:"
rc=$(${pkg_version:-pkg_version} -v |
rc=$(${pkg_version:-pkg_version} -v ${pkg_version_index} |
sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \
-e '/^[^ ]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
-e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' \