mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 06:02:59 +00:00
Add a pkg_version variable so that it's possible to run portsversion instead
of pkg_version in periodic/weekly/400.status-pkg.
This commit is contained in:
parent
18529dae1d
commit
df93d794dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103948
@ -201,6 +201,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
|
||||
|
||||
# 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 -v |
|
||||
rc=$(${pkg_version:-pkg_version} -v |
|
||||
sed -n -e 's/^\([^ ]*\) *< */ \1 /p' \
|
||||
-e '/^[^ ]*-\([^ ]*\) *\* *multiple versions.*[ ,]\1[,)].*/d' \
|
||||
-e 's/^\([^ ]*\) *\* *multiple versions.*\((.*\)/ \1 needs updating \2/p' \
|
||||
|
@ -636,6 +636,20 @@ Set to
|
||||
if you want to use
|
||||
.Xr pkg_version 1
|
||||
to list installed packages which are out of date.
|
||||
.It Va pkg_version
|
||||
.Pq Vt string
|
||||
When
|
||||
.Va weekly_status_pkg_enable
|
||||
is set to
|
||||
.Dq YES ,
|
||||
this variable specifies the program that is used to determine the out of
|
||||
date packages.
|
||||
If unset, the
|
||||
.Xr pkg_version 1
|
||||
program is used.
|
||||
As an example, this variable might be set to
|
||||
.Dq portversion
|
||||
if the portupgrade port has been installed.
|
||||
.It Va weekly_local
|
||||
.Pq Vt str
|
||||
Set to a list of extra scripts that should be run after all other
|
||||
|
Loading…
x
Reference in New Issue
Block a user