[pacman-dev] IDEA: checkdb script
Jason Chu
jason at archlinux.org
Sat Dec 23 19:11:51 EST 2006
On Sat, 23 Dec 2006 00:21:14 +0200
"Roman Kyrylych" <roman.kyrylych at gmail.com> wrote:
> Hi!
>
> After yet another local database corruption I've got an idea for a
> script that will do the following:
> go through files in /var/lib/pacman/local/ and check dependencies of
> them with those, listed in
> /var/lib/pacman/{current,extra,testing,unstable,community} and try to
> repair any found problems.
>
> For example both pacman and pacman3 write wrong dependency info into
> local database after some actions with some packages (there are few
> bugs about this already, but some may be unknown) - this script could
> fix this by rebuilding dependency tree from repos (it's highly
> recommended that all packages in current are up-to-date for this, but
> not strictly necessary, because depends are changed not so
> frequently).
>
> Of course there is the problem with this - what if this script will
> build wrong dependency tree or have other bugs. :p But I think there
> shouldn't be big problem to ensure it will work like swiss watch, and
> it can be used to find bugs in pacman when doing -S / -R intensively.
>
> What do you think about this?
What if I build a custom package that has different deps but the same
name as something in current/extra? Then the script would think it was
wrong even though it wasn't.
I'd probably want such a script to prompt me about things that it
noticed wrong.
Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20061223/5398956e/attachment.pgp>
More information about the pacman-dev
mailing list