Hi,
is there any progress on fixing the behavior of the -q flag?

Now (as of aptitude/0.6.1.3-3) it seems that the intended effect of the
-q flag is documented in the man page:

| -q[=<n>], --quiet[=<n>]
|      Suppress all incremental progress indicators, thus making the
|      output loggable. This may be supplied multiple times to make the
|      program quieter, but unlike apt-get, aptitude does not enable -y
|      when -q is supplied more than once.
|
|      The optional =<n> may be used to directly set the amount of
|      quietness (for instance, to override a setting in
|      /etc/apt/apt.conf); it causes the program to behave as if -q had
|      been passed exactly <n> times.

However, the actual effect does not seem to correspond to what is
advertised...

# aptitude -q -y install most > /tmp/test-q1.log

produces the attached output, which is full of partial progress
percentages and ^M characters.
I personally don't mind a single -q leaves some Reading/Building/...
messages in the output: what I really would love to see suppressed are
those ^M characters and the progress percentages.

# aptitude -q=2 -y install most > /tmp/test-q2.log

and

# aptitude -q=10 -y install most > /tmp/test-q10.log

produce identical outputs:

# diff -sq /tmp/test-q1.log /tmp/test-q2.log 
Files /tmp/test-q1.log and /tmp/test-q2.log are identical
# diff -sq /tmp/test-q1.log /tmp/test-q10.log 
Files /tmp/test-q1.log and /tmp/test-q10.log are identical

In other words, the -q=<n> flag does not seem to have *any* effect...

Please let me know.

-- 
 New location for my website! Update your bookmarks!
 http://www.inventati.org/frx
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: test-q1.log.gz
Description: Binary data

Attachment: pgpXlKE3dBOaC.pgp
Description: PGP signature

Reply via email to