diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-26 08:59:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-26 08:59:29 +0000 |
commit | 0b5b73bc52dbc95ceab7f32d10b17e9f21a1cee6 (patch) | |
tree | fac76a4e6c3dbc1284b1c25917de802081095d34 /usr.sbin | |
parent | 2e7c0ede70dcc14c8606a396c03f207d3f94ce79 (diff) | |
download | FreeBSD-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.c | 13 |
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() */ |