projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cherry pick fix from sid
[apt.git]
/
cmdline
/
apt-cdrom.cc
diff --git
a/cmdline/apt-cdrom.cc
b/cmdline/apt-cdrom.cc
index 8b9eacae67f0d8734b0e4802c3beb71f9e36f131..d1268edf9a239358db91d9d9746667fa159c8ef5 100644
(file)
--- a/
cmdline/apt-cdrom.cc
+++ b/
cmdline/apt-cdrom.cc
@@
-266,20
+266,18
@@
int main(int argc,const char *argv[]) /*{{{*/
return ShowHelp();
// Deal with stdout not being a tty
return ShowHelp();
// Deal with stdout not being a tty
- if (isatty(STDOUT_FILENO) && _config->FindI("quiet",
0) <
1)
+ if (isatty(STDOUT_FILENO) && _config->FindI("quiet",
-1) == -
1)
_config->Set("quiet","1");
// Match the operation
CmdL.DispatchArg(Cmds);
// Print any errors or warnings found during parsing
_config->Set("quiet","1");
// Match the operation
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();
_error->DumpErrors();
- return Errors == true?100:0;
- }
-
- return 0;
+ else
+ _error->DumpErrors(GlobalError::DEBUG);
+ return Errors == true ? 100 : 0;
}
/*}}}*/
}
/*}}}*/