From 92103fbc745a2798633d7724145c8df4577a3684 Mon Sep 17 00:00:00 2001 From: Daniel Burrows Date: Sun, 20 Apr 2008 08:24:36 -0700 Subject: When trying to auto-enable quietness due to not having a TTY to write to, don't decrease any existing "quiet" setting. --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index a33e681b..bf362bdc 100644 --- a/src/main.cc +++ b/src/main.cc @@ -536,8 +536,9 @@ int main(int argc, char *argv[]) } } + int curr_quiet = aptcfg->FindI("quiet", 0); if(quiet == 0 && !isatty(1)) - aptcfg->SetNoUser("quiet", 1); + aptcfg->SetNoUser("quiet", std::max(curr_quiet, 1)); else if(seen_quiet) aptcfg->SetNoUser("quiet", quiet); -- cgit v1.2.3