diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:17 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:17 +0000 |
commit | a9a5908db9fa6ee108fb23f516b422aa9ca47120 (patch) | |
tree | a069ca3df83362346d5080f41593426428c9093f /cmdline/apt-get.cc | |
parent | e5a1f2ff4cd1300364c7c644958583a8af704173 (diff) |
Fixed bug#34944: apt-get should not print progress on n...
Author: jgg
Date: 1999-03-27 01:30:38 GMT
Fixed bug#34944: apt-get should not print progress on non-tty
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index d7580c2f3..81c350dfa 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.45 1999/03/17 19:45:05 jgg Exp $ +// $Id: apt-get.cc,v 1.46 1999/03/27 01:30:38 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -1208,6 +1208,10 @@ int main(int argc,const char *argv[]) CmdL.FileSize() == 0) return ShowHelp(CmdL); + // Deal with stdout not being a tty + if (ttyname(STDOUT_FILENO) == 0 && _config->FindI("quiet",0) < 1) + _config->Set("quiet","1"); + // Setup the output streams c0out.rdbuf(cout.rdbuf()); c1out.rdbuf(cout.rdbuf()); |