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:
Hajimu UMEMOTO 2012-10-13 14:45:42 +00:00
parent 80d6987c5a
commit 72d27857dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241507

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