severity 569516 minor merge 569516 659479 tags 569516 + patch pending thanks
On 11 February 2012 20:40, Toby Speight <[email protected]> wrote: > Package: aptitude > Version: 0.6.4-1.2 > Severity: minor > > Aptitude is an awesome tool, but one thing that annoys me is a bunch of > progress messages that can't be eliminated even at the highest 'quiet' > setting: > > /-------- > | # aptitude -q9 update > | Reading package lists... > | Building dependency tree... > | Reading state information... > | Reading extended state information... > | Initializing package states... > | Writing extended state information... > | Deleting obsolete downloaded files > \-------- [In theory, -q2 is the maximum effective level.] This problem is already reported. The attached patch fixes it: # ./aptitude -q1 update Hit http://ftp.wa.au.debian.org sid InRelease Hit http://ftp.wa.au.debian.org sid/main i386 Packages/DiffIndex Hit http://ftp.wa.au.debian.org sid/main TranslationIndex Hit http://ftp.wa.au.debian.org sid/main Translation-en Reading package lists... Updating debtags database... # ./aptitude -q2 update # ./aptitude -q2 full-upgrade The following packages will be upgraded: cpp-4.6 g++-4.6 gcc-4.6 gcc-4.6-base libcups2 libgcc1 libgomp1 libquadmath0 libstdc++6 libstdc++6-4.6-dev libstdc++6-4.6-doc python-xapian vim vim-common vim-runtime The following partially installed packages will be configured: distcc 15 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 32.9 MB/33.1 MB of archives. After unpacking 59.4 kB will be freed. Do you want to continue? [Y/n/?] n Abort. Regards
From 81c836c859fc4e5dfece7f2015cc5bb94fcfd128 Mon Sep 17 00:00:00 2001 From: Daniel Hartwig <[email protected]> Date: Sun, 12 Feb 2012 00:36:37 +0800 Subject: [PATCH] Silence text progress when -q2 --- src/cmdline/text_progress.cc | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/cmdline/text_progress.cc b/src/cmdline/text_progress.cc index 05b8855..da9c2db 100644 --- a/src/cmdline/text_progress.cc +++ b/src/cmdline/text_progress.cc @@ -137,9 +137,13 @@ namespace aptitude bool hidden = false; if(!isatty(1) || - aptcfg->FindI("Quiet", 0)) + aptcfg->FindI("quiet", 0) >= 1 || + aptcfg->FindB("quiet::NoUpdate", false) == true) hide_tty_decorations = true; + if(aptcfg->FindI("quiet", 0) >= 2) + hidden = true; + if(require_tty_decorations && hide_tty_decorations) hidden = true; -- 1.7.9
_______________________________________________ Aptitude-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel

