[Aptitude-devel] Bug#659479: aptitude: Too chatty even with --quiet=9

2012-02-15 Thread Toby Speight
 Daniel == Daniel Hartwig mand...@gmail.com writes:

Daniel This problem is already reported.  The attached patch fixes
Daniel it:

I've had that patch installed for a couple of days and it does just what
I want - thanks.  Looking forward to seeing it in a future release.  :-)



___
Aptitude-devel mailing list
Aptitude-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel


[Aptitude-devel] Bug#659479: aptitude: Too chatty even with --quiet=9

2012-02-11 Thread Toby Speight
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
\

I have cron jobs that run aptitude several times (in different chroots,
for diskless clients), and all the clutter gets in the way of easily
seeing which packages are to be upgraded.

In case it's relevant, my scripts look something like

/
| for d in $clients
| do
|   chroot $d aptitute -q2 update
|   chroot $d aptitute -q2 -d -y full-upgrade
| done
\

so that the downloading is done at night when bandwidth is cheap, but
the email from cron alerts me when I have stuff to install.

-- Package-specific info:
aptitude 0.6.4 compiled at Oct 29 2011 20:08:13
Compiler: g++ 4.6.2
Compiled against:
  apt version 4.10.1
  NCurses version 5.9
  libsigc++ version: 2.2.9
  Ept support enabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20110404
  cwidget version: 0.5.16
  Apt version: 4.10.1
linux-vdso.so.1 =  (0x7fff579ff000)
libapt-pkg.so.4.10 = /usr/lib/libapt-pkg.so.4.10 (0x00381a00)
libncursesw.so.5 = /lib/x86_64-linux-gnu/libncursesw.so.5 
(0x00382080)
libtinfo.so.5 = /lib/x86_64-linux-gnu/libtinfo.so.5 
(0x00382980)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x00381c00)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x7f868a1c2000)
libept.so.1 = /usr/lib/libept.so.1 (0x7f8689f65000)
libxapian.so.22 = /usr/lib/libxapian.so.22 (0x7f8689b68000)
libz.so.1 = /usr/lib/libz.so.1 (0x003819c0)
libsqlite3.so.0 = /usr/lib/libsqlite3.so.0 (0x00383120)
libboost_iostreams.so.1.46.1 = /usr/lib/libboost_iostreams.so.1.46.1 
(0x00382380)
libpthread.so.0 = /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00381980)
libstdc++.so.6 = /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00381cc0)
libm.so.6 = /lib/x86_64-linux-gnu/libm.so.6 (0x00381900)
libgcc_s.so.1 = /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00381c40)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x003818c0)
libutil.so.1 = /lib/x86_64-linux-gnu/libutil.so.1 (0x003830e0)
libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x00381940)
libuuid.so.1 = /lib/libuuid.so.1 (0x7f868996)
libbz2.so.1.0 = /lib/x86_64-linux-gnu/libbz2.so.1.0 
(0x003829c0)
librt.so.1 = /lib/x86_64-linux-gnu/librt.so.1 (0x7f8689757000)
/lib64/ld-linux-x86-64.so.2 (0x00381880)
Terminal: eterm-color
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.1-balti (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg4.10]  0.8.15.9
ii  libboost-iostreams1.46.1  1.46.1-8
ii  libc6 2.13-26
ii  libcwidget3   0.5.16-3.1
ii  libept1   1.0.5
ii  libgcc1   1:4.6.2-12
ii  libncursesw5  5.9-4
ii  libsigc++-2.0-0c2a2.2.9-1.1
ii  libsqlite3-0  3.7.9-2
ii  libstdc++64.6.2-12
ii  libtinfo5 5.9-4
ii  libxapian22   1.2.8-1
ii  zlib1g1:1.2.3.4.dfsg-3

Versions of packages aptitude recommends:
ii  apt-xapian-indexnone
ii  aptitude-doc-en [aptitude-doc]  0.6.4-1.2
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils  0.0.6

Versions of packages aptitude suggests:
pn  debtags  none
pn  tasksel  none

-- Configuration Files:
/etc/cron.daily/aptitude changed:
bak=/var/backups
if test -f /var/lib/aptitude/pkgstates  cd $bak ; then
if ! cmp -s aptitude.pkgstates.0 /var/lib/aptitude/pkgstates ; then
cp -p /var/lib/aptitude/pkgstates aptitude.pkgstates
savelog -c 7 aptitude.pkgstates  /dev/null
fi
fi

-- no debconf information
___
Aptitude-devel mailing list
Aptitude-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel

[Aptitude-devel] Bug#659479: aptitude: Too chatty even with --quiet=9

2012-02-11 Thread Daniel Hartwig
severity 569516 minor
merge 569516 659479
tags 569516 + patch pending
thanks

On 11 February 2012 20:40, Toby Speight t.m.speight...@cantab.net 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 mand...@gmail.com
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
Aptitude-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel