CD detection fix.
Ryan C. Gordon
icculus at clutteredmind.org
Sat Feb 16 02:10:21 EST 2002
I am not sure of the ramifications of this patch, but without it, the
<cdrom> element seems to be useless, since it isn't parsed until after
setup requests discs to be mounted.
Like I said, I'm not sure if this is a safe change, or the full
ramifications of it, but take a look (it just moves one line up)...
--ryan.
Index: main.c
===================================================================
RCS file: /cvs/cvsroot/loki_setup/main.c,v
retrieving revision 1.46
diff -u -r1.46 main.c
--- main.c 2002/01/28 01:13:30 1.46
+++ main.c 2002/02/16 07:07:40
@@ -267,6 +267,8 @@
switch (state) {
case SETUP_INIT:
+ num_cds = GetProductCDROMDescriptions(info);
+
state = UI.init(info,argc,argv, enabled_options != NULL);
if ( state == SETUP_ABORT ) {
exit_status = 1;
@@ -306,8 +308,6 @@
continue;
}
}
-
- num_cds = GetProductCDROMDescriptions(info);
/* Check for the presence of a CDROM if required */
if ( GetProductCDROMRequired(info) ) {
More information about the Lokisetup
mailing list