[pacman-dev] noconfirm trivial bug - prompt printed but unused/unnecessary

Xavier shiningxc at gmail.com
Wed May 20 08:35:37 EDT 2009


On Wed, May 20, 2009 at 2:24 PM, Allan McRae <allan at archlinux.org> wrote:
>
> I'd be in favour of the less informative route.  I.e.
>
> sudo pacman -Sc --noconfirm
> Cache directory: /var/cache/pacman/pkg/
> removing old packages from cache... done.
> Database directory: /var/lib/pacman/
> Database directory cleaned up
>
> Note the only long operation is the "removing old packages from cache..."
> which notifies the user what is being done anyway.  So I think it best not
> to output those messages.  And if you make the "r" in "removing" a capital
> like every other message in that output at the same time, that would be
> good.
>

In this particular case, it is fine indeed.
But we have this generic question function.
We could skip any printing there in case of --noconfirm, but then we
would need to check that all the questions pacman can ask can be
silenced.


More information about the pacman-dev mailing list