]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
do not override the user set quiet setting even if the target is not a tty
[apt.git] / cmdline / apt-get.cc
index 605eedb0fa57bfea3b9ecd8b7ef9ee406d231d50..e3477b6db501eb15d7774ed307a9a7d49a898233 100644 (file)
@@ -2899,7 +2899,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");
 
    // Setup the output streams