[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#154602: [PATCH] Attempt to use CD already in tray before prompting user



tags 154602 + patch
thanks

Petter Reinholdtsen <pere@hungry.com>:
> During first time install, the installation asks for the install CD to
> be installed, even if it is already in the CD tray.  It would be
> easier for the user if apt would detect that the CD is already there.

Not to mention that it'll be easier to have unmaintained installations
from CD, and make APT appear more intelligent to the users.

Here's the patch:

--- methods/cdrom.cc.orig       Tue May 22 06:01:41 2001
+++ methods/cdrom.cc    Sat Oct  5 11:42:08 2002
@@ -137,6 +137,7 @@
    while (CurrentID.empty() == true)
    {
       bool Hit = false;
+      Mounted = MountCdrom(CDROM);
       for (unsigned int Version = 2; Version != 0; Version--)
       {
         if (IdentCdrom(CDROM,NewID,Version) == false)
@@ -166,9 +167,6 @@
         Fail("Wrong CD",true);
         return true;
       }
-
-      MountCdrom(CDROM);
-      Mounted = true;
    }

    // Found a CD

-- 
Tore Anderson



Reply to: