summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index bf362bdc..4efdc0de 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -537,10 +537,10 @@ int main(int argc, char *argv[])
}
int curr_quiet = aptcfg->FindI("quiet", 0);
+ if(seen_quiet)
+ aptcfg->SetNoUser("quiet", quiet);
if(quiet == 0 && !isatty(1))
aptcfg->SetNoUser("quiet", std::max(curr_quiet, 1));
- else if(seen_quiet)
- aptcfg->SetNoUser("quiet", quiet);
if(simulate)
aptcfg->SetNoUser(PACKAGE "::Simulate", true);