27c27
< # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 251361 2013-06-04 03:30:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 251758 2013-06-14 19:35:30Z dteske $
606,607c606,607
< 2> /dev/null
< local retval=$?
---
> 2> /dev/null || return $?
> # Return if the user pressed ESC or chose Cancel/No
610c610,614
< # XXX
---
> # Process each of the selected packages:
> # + First, process dependencies.
> # + Second, process packages marked for Install.
> # + Third, process packages marked for Re-install.
> # + Finally, process packages marked for Uninstall.
612,613c616,648
< f_show_msg "Coming soon..."
< #
---
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "D" ] || continue
> # XXX Install dependency
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "I" ] || continue
> # XXX Install package
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "R" ] || continue
> # XXX Re-install package
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "U" ] || continue
> # XXX Uninstall package
> f_package_deselect "$package"
> done
>
615c650
< #
---
> f_show_msg "Coming soon..."
617c652
< return $retval
---
> return $SUCCESS
< # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 251361 2013-06-04 03:30:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/packages/packages.subr 251758 2013-06-14 19:35:30Z dteske $
606,607c606,607
< 2> /dev/null
< local retval=$?
---
> 2> /dev/null || return $?
> # Return if the user pressed ESC or chose Cancel/No
610c610,614
< # XXX
---
> # Process each of the selected packages:
> # + First, process dependencies.
> # + Second, process packages marked for Install.
> # + Third, process packages marked for Re-install.
> # + Finally, process packages marked for Uninstall.
612,613c616,648
< f_show_msg "Coming soon..."
< #
---
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "D" ] || continue
> # XXX Install dependency
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "I" ] || continue
> # XXX Install package
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "R" ] || continue
> # XXX Re-install package
> f_package_deselect "$package"
> done
> for package in $SELECTED_PACKAGES; do
> mark=
> f_str2varname "$package" varpkg
> f_getvar _mark_$varpkg mark
> [ "$mark" = "U" ] || continue
> # XXX Uninstall package
> f_package_deselect "$package"
> done
>
615c650
< #
---
> f_show_msg "Coming soon..."
617c652
< return $retval
---
> return $SUCCESS