summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-02-12 09:23:20 +0100
committerMichael Vogt <mvo@debian.org>2014-02-12 09:23:20 +0100
commit183d522362c95309d70baa418b54096599c17653 (patch)
tree9f0c12dc542c3ec627d7cc384ec55838ae9e63fc /apt-private
parentce55512d4924b52c985276c62a0c69ac13e203cd (diff)
parent8f3594c3487800edc2a97af1f3290049776dc556 (diff)
Merge remote-tracking branch 'mvo/debian/sid' into debian/sid
Conflicts: test/integration/test-apt-get-download
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-output.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc
index 2ae112af4..420ca14d5 100644
--- a/apt-private/private-output.cc
+++ b/apt-private/private-output.cc
@@ -30,6 +30,9 @@ unsigned int ScreenWidth = 80 - 1; /* - 1 for the cursor */
bool InitOutput() /*{{{*/
{
+ if (!isatty(STDOUT_FILENO) && _config->FindI("quiet", -1) == -1)
+ _config->Set("quiet","1");
+
c0out.rdbuf(cout.rdbuf());
c1out.rdbuf(cout.rdbuf());
c2out.rdbuf(cout.rdbuf());