[pacman-dev] Fun output when repo db is missing

Dan McGee dpmcgee at gmail.com
Thu Jun 16 10:57:57 EDT 2011


On Wed, Jun 15, 2011 at 6:39 AM, Allan McRae <allan at archlinux.org> wrote:
> I just saw this:
>
> allan at mugen ~
>> sudo mv /var/lib/pacman/sync/allanbrokeit.db{,.bak}
>
> allan at mugen ~
>> pacman -Su | wc -l
> Proceed with installation? [Y/n] n
> 1148
>
> That is a lot of copies of:
> error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to
> open '/var/lib/pacman/sync/allanbrokeit.db'

I want to say we could leverage my database is valid patches to make
this suck less- the first time we check the db for validity (including
actual existence) we would throw the error message but be silent from
there on out (and/or abort if that is the prudent step to take).

-Dan


More information about the pacman-dev mailing list