Re: [pacman-dev] Behaviour on -Scc flag

2017-11-26 Thread Filip Matzner
Got it, thanks.

On Sun, Nov 26, 2017 at 5:14 PM beest  wrote:

> On Sun, Nov 26, 2017 at 12:11:36PM +, Filip Matzner wrote:
> > I would like to discuss the behaviour of
> > pacman -Scc --noconfirm
> >
> > Currently, it does not clean any package in the cache dir, because the
> > default answer is 'N'. In my opinion it should clean the packages, since
> > there are already two 'c's in the flag, so the user probably knows what
> is
> > he doing. I believe there should be "yesno" instead of "noyes" on
> > /pacman/sync.c:191
> > .
> What do
> > you think?
>
> Use paccache for non-interactive cache cleaning. Passing two clean flags
> means "completely erase the cache", not "I really mean it for serious".
> Performing a potentially destructive operation should not somehow make
> it more likely to default to "Y".
>


Re: [pacman-dev] Behaviour on -Scc flag

2017-11-26 Thread beest
On Sun, Nov 26, 2017 at 12:11:36PM +, Filip Matzner wrote:
> I would like to discuss the behaviour of
> pacman -Scc --noconfirm
> 
> Currently, it does not clean any package in the cache dir, because the
> default answer is 'N'. In my opinion it should clean the packages, since
> there are already two 'c's in the flag, so the user probably knows what is
> he doing. I believe there should be "yesno" instead of "noyes" on
> /pacman/sync.c:191
> . What do
> you think?

Use paccache for non-interactive cache cleaning. Passing two clean flags
means "completely erase the cache", not "I really mean it for serious".
Performing a potentially destructive operation should not somehow make
it more likely to default to "Y".


[pacman-dev] Behaviour on -Scc flag

2017-11-26 Thread Filip Matzner
Greetings everyone,

I would like to discuss the behaviour of
pacman -Scc --noconfirm

Currently, it does not clean any package in the cache dir, because the
default answer is 'N'. In my opinion it should clean the packages, since
there are already two 'c's in the flag, so the user probably knows what is
he doing. I believe there should be "yesno" instead of "noyes" on
/pacman/sync.c:191
. What do
you think?

(btw, I found out because a docker image contained all the downloaded
packages even though the cache was cleaned with -Scc)

Yours Sincerely,
Filip