[pacman-dev] Changing how repo dbs are updated
Allan McRae
allan at archlinux.org
Wed Dec 1 23:54:47 CET 2010
On 02/12/10 00:40, Jeremiah Dodds wrote:
> On Wed, Dec 1, 2010 at 12:12 AM, Allan McRae<allan at archlinux.org> wrote:
>
>>
>> 3) pacman -Syy behavior. Instead of adding a "force" flag to overwrite the
>> old database, would it be better to just delete the old database first?
>> Currently, if you use pacman -Syy and a database download fails, you are
>> left with the old sync database you told pacman to get rid of. Is leaving
>> pacman with no database for that repo a better solution?
>>
>> Allan
>>
>>
> I'm not currently very familiar with pacmans codebase or operations on the
> dev side, but would it be better to backup the existing db, overwrite the
> existing db, and then delete the old db? That way if a database download
> fails, it can be rolled back.
>
That is essentially what I proposed for #1 and #2 in my original email.
The point with "-Syy" is that you have said you really do not what the
old database, so is keeping it as a fallback the correct thing to do in
this case?
Allan
More information about the pacman-dev
mailing list