diff options
Diffstat (limited to 'usr.sbin/bsdconfig/share/packages/packages.subr')
-rwxr-xr-x | usr.sbin/bsdconfig/share/packages/packages.subr | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/packages/packages.subr b/usr.sbin/bsdconfig/share/packages/packages.subr index 6441c4f..3f5d3d8 100755 --- a/usr.sbin/bsdconfig/share/packages/packages.subr +++ b/usr.sbin/bsdconfig/share/packages/packages.subr @@ -648,7 +648,7 @@ f_package_review() debug= f_getvar _mark_$varpkg mark [ "$mark" = "R" ] || continue f_dprintf "%s: Reinstalling %s package" $fname "$package" - # XXX Re-install package + f_package_reinstall "$package" done for package in $SELECTED_PACKAGES; do mark= @@ -1186,6 +1186,15 @@ f_package_delete() fi } +# f_package_reinstall $name +# +# A simple wrapper to f_package_delete() + f_package_add() +# +f_package_reinstall() +{ + f_package_delete "$1" && f_package_add "$1" +} + ############################################################ MAIN f_dprintf "%s: Successfully loaded." packages/packages.subr |