Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow enabling the pkgng version of 490.status-pkg-changes without also enabling the base system version of 490.status-pkg-changes on 9.x of earlier, where pkg_tools are installed.
Matthew Seaman committed 12 years ago
commit 7ca77448ddb34a551d673405eadc6b51bec62ebc
parent 7aca018
1 file changed +12 -0
modified scripts/periodic/490.status-pkg-changes.in
@@ -8,6 +8,18 @@ if [ -r /etc/defaults/periodic.conf ]; then
	source_periodic_confs
fi

+
# On 9.x or lower, 490.status-pkg-changes exists in the base system,
+
# but using the old pkg_tools commands.  Unfortunately it uses the
+
# same configuration variables, so allow the setting of 
+
# $daily_status_pkgng_changes_enable to turn on this script without
+
# enabling the pkg_tools equivalent
+

+
case "$daily_status_pkgng_changes_enable" in
+
        [Yy][Ee][Ss])
+
	daily_status_pkg_changes_enable="$daily_status_pkgng_changes_enable"
+
	;;
+
esac
+

case "$daily_status_pkg_changes_enable" in
	[Yy][Ee][Ss])
	pkgcmd=__PREFIX__/sbin/pkg