]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-output.cc
Merge branch 'debian/sid' into debian/experimental
[apt.git] / apt-private / private-output.cc
index 2ae112af464e0b609a38084b1e0516c35f99e54f..420ca14d59b89ddc23f1f1587e42d603630b3496 100644 (file)
@@ -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());