summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 08:59:29 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 08:59:29 +0000
commit0b5b73bc52dbc95ceab7f32d10b17e9f21a1cee6 (patch)
treefac76a4e6c3dbc1284b1c25917de802081095d34 /usr.sbin
parent2e7c0ede70dcc14c8606a396c03f207d3f94ce79 (diff)
downloadFreeBSD-src-0b5b73bc52dbc95ceab7f32d10b17e9f21a1cee6.zip
FreeBSD-src-0b5b73bc52dbc95ceab7f32d10b17e9f21a1cee6.tar.gz
Make the installation menu loop on the provided package directory (if one
is provided).
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_manage/pkg_ui.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/pkg_manage/pkg_ui.c b/usr.sbin/pkg_manage/pkg_ui.c
index 876022b..41f5328 100644
--- a/usr.sbin/pkg_manage/pkg_ui.c
+++ b/usr.sbin/pkg_manage/pkg_ui.c
@@ -211,14 +211,23 @@ install_batch(void)
use_helpfile(DS_INSTALL_HLP);
quit = FALSE;
while (!quit) {
+ if (StartDir) {
use_helpline("Select directory where the pkg's reside");
- if (dialog_dselect(StartDir ? StartDir : ".", "*.tgz")) {
+ if (dialog_dselect(".", "*.tgz")) {
quit = TRUE;
} else {
install_pkgs_indir();
}
- }
+ else {
+ use_helpline("Select directory where the pkg's reside");
+ if (dialog_dselect(".", "*.tgz")) {
+ quit = TRUE;
+ } else {
+ install_pkgs_indir();
+ }
+ }
+ }
return;
} /* install_batch() */
OpenPOWER on IntegriCloud