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
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
|
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
Tuesday, 05 October 2010, 05:25 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 879fed50
==> WARNING: An entry for 'zlib-1.2.5-2' already existed
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