diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-26 19:04:20 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-26 19:04:20 +0200 |
commit | c340d1851242e691e7e0baad18a662d6c7a62bc8 (patch) | |
tree | f4a29b7437cf44a9ea8109e80b0ce0c7dcb1a7cf /cmdline/apt-cache.cc | |
parent | 5afa55c6703a71a198aac950db30ffc6ca49f269 (diff) |
do not override the user set quiet setting even if the target is not a tty
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r-- | cmdline/apt-cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index a4ec63eed..a5b3141d7 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1868,7 +1868,7 @@ int main(int argc,const char *argv[]) /*{{{*/ } // 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"); // if (_config->FindB("APT::Cache::Generate",true) == false) |