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-cdrom.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-cdrom.cc')
-rw-r--r-- | cmdline/apt-cdrom.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 85d2fa3e8..459e4a48d 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cdrom.cc,v 1.17 1999/01/30 02:12:53 jgg Exp $ +// $Id: apt-cdrom.cc,v 1.18 1999/03/27 01:30:38 jgg Exp $ /* ###################################################################### APT CDROM - Tool for handling APT's CDROM database. @@ -1025,6 +1025,10 @@ int main(int argc,const char *argv[]) if (_config->FindB("help") == true || CmdL.FileSize() == 0) return ShowHelp(); + + // Deal with stdout not being a tty + if (ttyname(STDOUT_FILENO) == 0 && _config->FindI("quiet",0) < 1) + _config->Set("quiet","1"); // Match the operation CmdL.DispatchArg(Cmds); |