// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: dpkginit.cc,v 1.3 1999/07/26 17:46:08 jgg Exp $
+// $Id: dpkginit.cc,v 1.5 1999/08/03 05:21:19 jgg Exp $
/* ######################################################################
DPKG init - Initialize the dpkg stuff
"are you root?");
// See if we need to abort with a dirty journal
- if (WithUpdates == true && CheckUpdates() == false)
+ if (WithUpdates == true && CheckUpdates() == true)
{
Close();
return _error->Error("dpkg was interrupted, you must manually "
string File = flNotFile(_config->Find("Dir::State::status")) + "updates/";
DIR *DirP = opendir(File.c_str());
if (DirP == 0)
- return true;
+ return false;
/* We ignore any files that are not all digits, this skips .,.. and
some tmp files dpkg will leave behind.. */