[pacman-dev] Add --nolist option for transactions

Eli Schwartz eschwartz at archlinux.org
Mon Jul 9 22:25:48 UTC 2018


On 07/09/2018 05:58 PM, Dmitry Kudriavtsev wrote:
> On Mon, Jul 09, 2018 at 06:10:41AM -0400, Andrew Gregory wrote:
>> On 07/09/18 at 01:47am, Dmitry Kudriavtsev wrote:
>>> On Sat, Jul 07, 2018 at 05:17:32PM +1000, Allan McRae wrote:
>>>> On 07/07/18 10:32, me at dk0.us wrote:
>>>>> From: Dmitry Kudriavtsev <me at dk0.us>
>>>>>
>>>>> Adds a --nolist option for package transactions. This option removes the list
>>>>> display of packages to be installed or removed.
>>>>>
>>>>> Signed-off-by: Dmitry Kudriavtsev <me at dk0.us>
>>>>> ---
>>>>
>>>> I don't think this is a good option to include.
>>>
>>> Why not?
>>
>> Blindly installing/removing packages without knowing what they are is
>> generally a bad idea.  What is the use case for this feature?
> 
> Installing a list of packages that are already known, mostly for use in
> scripting or with -d.

I don't see why we should encourage people to do that, at all.

If you desperately dislike standard output, nothing is stopping you from
using:

yes y | pacman -S --noconfirm "${packagelist[@]}" > /dev/null 2>&1

Which also gets rid of the list, but with more honesty.

Though honestly, if you're scripting this it boggles my mind that you
don't want to preserve standard output in logs that you aren't looking
at unless something bad happens, in which case you want as much
information as possible...


-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20180709/9484644f/attachment.asc>


More information about the pacman-dev mailing list