Browse Source

do not override the user set quiet setting even if the target is not a tty

tags/debian/0.8.0
David Kalnischkies 11 years ago
parent
commit
c340d18512
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      cmdline/apt-cache.cc
  2. +1
    -1
      cmdline/apt-cdrom.cc
  3. +1
    -1
      cmdline/apt-get.cc

+ 1
- 1
cmdline/apt-cache.cc View 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)


+ 1
- 1
cmdline/apt-cdrom.cc View 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


+ 1
- 1
cmdline/apt-get.cc View 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


Loading…
Cancel
Save