summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/cdrom.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/methods/cdrom.cc b/methods/cdrom.cc
index 0d1e8f031..933d88fc4 100644
--- a/methods/cdrom.cc
+++ b/methods/cdrom.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cdrom.cc,v 1.1 1998/12/03 07:29:21 jgg Exp $
+// $Id: cdrom.cc,v 1.2 1998/12/04 22:56:55 jgg Exp $
/* ######################################################################
CDROM URI method for APT
@@ -115,7 +115,12 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
break;
UnmountCdrom(CDROM);
- MediaFail(Get.Host,CDROM);
+ if (MediaFail(Get.Host,CDROM) == false)
+ {
+ ID = "FAIL";
+ break;
+ }
+
MountCdrom(CDROM);
}