Don't ask about CD numbers if not installing from CD.

Approved by:	re
This commit is contained in:
Doug White 2005-07-02 22:34:22 +00:00
parent 60baed3742
commit c23f4ee59f

View File

@ -695,6 +695,7 @@ index_extract(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
* Prompt user if the package is not available on the current volume.
*/
if(mediaDevice->type == DEVICE_TYPE_CDROM) {
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,
@ -707,6 +708,7 @@ index_extract(Device *dev, PkgNodePtr top, PkgNodePtr who, Boolean depended)
return DITEM_FAILURE;
}
}
}
if (id && id->deps && strlen(id->deps)) {
char t[2048 * 8], *cp, *cp2;