Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#20403 - repo-{add,remove}: --quiet switch does not work as expected

Attached to Project: Pacman
Opened by Pierre Schmitz (Pierre) - Sunday, 08 August 2010, 01:10 GMT
Last edited by Allan McRae (Allan) - Tuesday, 05 October 2010, 05:25 GMT
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.4.0
Due in Version 3.5.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

repo-add and repo-remove both have a --quiet switch. But that switch does not suppress all unnecessary lines.

Compare: without --quiet:

==> Extracting database to a temporary location...
==> Adding package '/home/mirror/repo/core/os/i686/zlib-1.2.5-2-i686.pkg.tar.xz'
==> WARNING: An entry for 'zlib-1.2.5-2' already existed
-> Removing existing entry 'zlib-1.2.5-2'...
-> Creating 'desc' db entry...
-> Computing md5 checksums...
-> Creating 'depends' db entry...
==> Creating updated database file 'test.db.tar.gz'

with --quiet:

==> Extracting database to a temporary location...
==> Adding package '/home/mirror/repo/core/os/i686/zlib-1.2.5-2-i686.pkg.tar.xz'
==> WARNING: An entry for 'zlib-1.2.5-2' already existed
==> Creating updated database file 'test.db.tar.gz'


This behavior produces too much uninteresting output when used in our dbscripts for example. Of course we could just pipe the output to /dev/null, but that is obviously not the point of the --quiet switch :-)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 05 October 2010, 05:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 879fed50
Comment by Allan McRae (Allan) - Sunday, 08 August 2010, 01:49 GMT
Here is a patch. Now with --quiet:

==> WARNING: An entry for 'zlib-1.2.5-2' already existed
Comment by Pierre Schmitz (Pierre) - Sunday, 08 August 2010, 09:36 GMT
Thanks. I also think the "WARNING" does not to be displayed in quiet mode. (If it's worth a warning at all) If you remove the last package the db is empty. Nothing wrong about that.
Comment by Dan McGee (toofishes) - Sunday, 08 August 2010, 15:30 GMT
So are we completely backing out this earlier change that does exactly the opposite?

commit a9f030e84c96d57fbcbc7e8af5fc897515ef79e7
Author: Aaron Griffin <aaronmgriffin@gmail.com>
Date: Fri Dec 12 00:02:19 2008 -0600

Make the repo-add quiet flag less quiet
Comment by Allan McRae (Allan) - Sunday, 08 August 2010, 23:00 GMT
yes - either that or we changes the docs which say that currently say only the warnings and errors are printed on --quiet.
Comment by Allan McRae (Allan) - Tuesday, 05 October 2010, 05:25 GMT

Loading...