// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cdrom.cc,v 1.4 1998/12/22 07:36:49 jgg Exp $
+// $Id: cdrom.cc,v 1.5 1998/12/22 07:41:25 jgg Exp $
/* ######################################################################
CDROM URI method for APT
_error->Error("Unable to read the cdrom database %s",
DFile.c_str());
Fail();
+ return string();
}
}
DatabaseLoaded = true;
{
Fail("Please use apt-cdrom to make this CD recognized by APT."
" apt-get update cannot be used to add new CDs");
- return true;
+ return false;
}
// We already have a CD inserted, but it is the wrong one
if (CurrentID.empty() == false && ID != CurrentID)
{
Fail("Wrong CD",true);
- return true;
+ return false;
}
string CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
{
CurrentID = "FAIL";
Fail("Wrong CD",true);
- return true;
+ return false;
}
MountCdrom(CDROM);