From 018f15333c0b24232f771a675fc2b4c8cb5fe799 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:50 +0000 Subject: CDROM and GlobOr fix Author: jgg Date: 1998-12-04 22:56:50 GMT CDROM and GlobOr fix --- methods/cdrom.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'methods') diff --git a/methods/cdrom.cc b/methods/cdrom.cc index 0d1e8f03..933d88fc 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); } -- cgit v1.2.3