[pacman-dev] noconfirm trivial bug - prompt printed but unused/unnecessary
shiningxc at gmail.com
Wed May 20 08:14:06 EDT 2009
On Wed, May 20, 2009 at 2:07 PM, Brendan Hide <brendan at swiftspirit.co.za> wrote:
> Hi all
> I'm still getting my head around git and pacman-dev's workflow - I know its
> not that complicated, just need a bit of time.
> When using --noconfirm the prompt is presented (odd part) and the user
> (rightly) is not given an opportunity to confirm:
>> [ brendan at swift : 12:36:40 : ~/src/pacman ]
>> :) sudo pacman -Sc --noconfirm
>> Cache directory: /var/cache/pacman/pkg/
>> Do you want to remove outdated packages from cache? [Y/n]
>> removing old packages from cache... done.
>> Database directory: /var/lib/pacman/
>> Do you want to remove unused repositories? [Y/n] <------
>> Database directory cleaned up
>> [ brendan at swift : 12:36:57 : ~/src/pacman ]
> Best fix I can think of is to just mention that we're using a default
> because the --noconfirm flag has been used. The alternative (which is less
> informative for the user) is to not present the prompt at all.
If you add another sentence, it's redundant imo.
pacman already shows the default answer in upper case, so we already
know that Yes was chosen in both cases, automatically because of
More information about the pacman-dev