Make a command for pkg_info changeable like pkg_version in

/etc/periodic/weekly/400.status-pkg to be friendly with pkgng.

MFC after:	1 week
This commit is contained in:
ume 2012-10-13 14:45:42 +00:00
parent 6d988f09cf
commit e2e55abec2

View File

@ -23,7 +23,7 @@ case "$daily_status_pkg_changes_enable" in
if [ -f $bak/pkg_info.bak ]; then
mv -f $bak/pkg_info.bak $bak/pkg_info.bak2
fi
/usr/sbin/pkg_info > $bak/pkg_info.bak
${pkg_info:-/usr/sbin/pkg_info} > $bak/pkg_info.bak
cmp -sz $bak/pkg_info.bak $bak/pkg_info.bak2
if [ $? -eq 1 ]; then