aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-03-25 21:38:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-03-25 21:38:26 +0000
commit487c24149754e1a4c228bc6d529f50a553cc4e0d (patch)
treedfbf206c648357daa9216a67b5b0f49a0d66a176 /usr.sbin
parent36830f3bef8b107ea77b2b3d9a7f296bd8a91b16 (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/index.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/index.c b/usr.sbin/sysinstall/index.c
index aab5f5baf7aba..ef685644a5672 100644
--- a/usr.sbin/sysinstall/index.c
+++ b/usr.sbin/sysinstall/index.c
@@ -692,10 +692,10 @@ index_extract(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
return DITEM_SUCCESS;
/*
- * What if the package is not available on the current media volume?
- *
+ * Prompt user if the package is not available on the current volume.
*/
- if (id->volume != dev->volume) {
+
+ while (id->volume != dev->volume) {
if (!msgYesNo("This is disc #%d. Package %s is on disc #%d\n"
"Would you like to switch discs now?\n", dev->volume,
id->name, id->volume)) {
@@ -703,8 +703,6 @@ index_extract(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
msgConfirm("Please remove disc #%d from your drive, and add disc #%d\n",
dev->volume, id->volume);
DEVICE_INIT(mediaDevice);
- /* XXX, at this point we check to see if this is the
- * correct disc, and if not, we loop */
} else {
return DITEM_FAILURE;
}