]> git.saurik.com Git - apt.git/commitdiff
do not override the user set quiet setting even if the target is not a tty
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 26 Jun 2010 17:04:20 +0000 (19:04 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 26 Jun 2010 17:04:20 +0000 (19:04 +0200)
cmdline/apt-cache.cc
cmdline/apt-cdrom.cc
cmdline/apt-get.cc

index a4ec63eeda0a65544410fdfadf9004819fc610cd..a5b3141d7e1f8093eceff0d100ea26323c0e1db2 100644 (file)
@@ -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)
index da2ffa3901ef53cdf557344b4d9c24e367fcb737..d1268edf9a239358db91d9d9746667fa159c8ef5 100644 (file)
@@ -266,7 +266,7 @@ int main(int argc,const char *argv[])                                       /*{{{*/
       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
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