summaryrefslogtreecommitdiff
path: root/methods/cdrom.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:50 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:50 +0000
commit018f15333c0b24232f771a675fc2b4c8cb5fe799 (patch)
tree39c876564f6963479d6ffe30e41427b3c32b5f3b /methods/cdrom.cc
parent542ec555f1d484a299b56e35655756d78716f102 (diff)
CDROM and GlobOr fix
Author: jgg Date: 1998-12-04 22:56:50 GMT CDROM and GlobOr fix
Diffstat (limited to 'methods/cdrom.cc')
-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);
}