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:
parent
ecad688385
commit
bb1e7a5e19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129424
@ -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
|
||||
|
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user