Browse Source

print all messages if the application is in an interactive run

debian/1.8.y
David Kalnischkies 12 years ago
parent
commit
65beb5720f
  1. 12
      cmdline/apt-cache.cc
  2. 12
      cmdline/apt-cdrom.cc
  3. 12
      cmdline/apt-get.cc

12
cmdline/apt-cache.cc

@ -1876,13 +1876,11 @@ int main(int argc,const char *argv[]) /*{{{*/
CmdL.DispatchArg(CmdsB);
// Print any errors or warnings found during parsing
if (_error->empty() == false)
{
bool Errors = _error->PendingError();
bool const Errors = _error->PendingError();
if (_config->FindI("quiet",0) > 0)
_error->DumpErrors();
return Errors == true?100:0;
}
return 0;
else
_error->DumpErrors(GlobalError::DEBUG);
return Errors == true ? 100 : 0;
}
/*}}}*/

12
cmdline/apt-cdrom.cc

@ -273,13 +273,11 @@ int main(int argc,const char *argv[]) /*{{{*/
CmdL.DispatchArg(Cmds);
// Print any errors or warnings found during parsing
if (_error->empty() == false)
{
bool Errors = _error->PendingError();
bool const Errors = _error->PendingError();
if (_config->FindI("quiet",0) > 0)
_error->DumpErrors();
return Errors == true?100:0;
}
return 0;
else
_error->DumpErrors(GlobalError::DEBUG);
return Errors == true ? 100 : 0;
}
/*}}}*/

12
cmdline/apt-get.cc

@ -2920,13 +2920,11 @@ int main(int argc,const char *argv[]) /*{{{*/
CmdL.DispatchArg(Cmds);
// Print any errors or warnings found during parsing
if (_error->empty() == false)
{
bool Errors = _error->PendingError();
bool const Errors = _error->PendingError();
if (_config->FindI("quiet",0) > 0)
_error->DumpErrors();
return Errors == true?100:0;
}
return 0;
else
_error->DumpErrors(GlobalError::DEBUG);
return Errors == true ? 100 : 0;
}
/*}}}*/

Loading…
Cancel
Save