[pacman-dev] [PATCH] pacman: don't nuke local repos with -Sc

Allan McRae allan at archlinux.org
Thu Jun 24 05:38:07 UTC 2021


On 15/6/21 5:11 am, morganamilo wrote:
> When using a local repo as a cachedir  pacman -Scc or pacman -Sc
> without KeepCurrent will delete the repo database and packages
> resulting in a lost database and non functional pacman.
> 
> So special case file:/// repos in cache to not get nuked and foce
> KeepCurrent on.
> ---

This behaviour change is undocumented.

I don't think we should do this for -Scc.  That is explicitly asking all
package files in cache directories to be removed, so that is what you get.

I also am leaning towards this behaviour for -Sc being unexpected (even
if documented).  Pacman's job is really not to manage complex cache
set-ups and I'm not convinced this should be supported.

Allan


More information about the pacman-dev mailing list