[arch-dev-public] broken database entries
Hello, there are regularly some broken entries, with a FILENAME mismatch for example. A while ago, I reported a bug for two broken entries along with a simple one-line command that anyone can run to detect them : http://bugs.archlinux.org/task/9337 for i in /var/lib/pacman/sync/*/*; do grep -A1 FILENAME $i/desc | tail -n1 | grep -v $(basename $i) && echo $(basename $i); done This currently returns one broken entry : devtools, also reported here : http://bugs.archlinux.org/task/10262 Maybe this information is already obsolete with the new db scripts on the way (well, anyone can dream). And apparently a new devtools will come with the new db script, so that should also fix the db entry issue. This mail is simply a reminder that it's very easy to check the sync dbs for this kind of mismatch, and that 10262 can probably be closed when a new devtools is added.
On Thu, May 8, 2008 at 5:04 AM, Xavier <shiningxc@gmail.com> wrote:
Hello,
there are regularly some broken entries, with a FILENAME mismatch for example. A while ago, I reported a bug for two broken entries along with a simple one-line command that anyone can run to detect them : http://bugs.archlinux.org/task/9337 for i in /var/lib/pacman/sync/*/*; do grep -A1 FILENAME $i/desc | tail -n1 | grep -v $(basename $i) && echo $(basename $i); done
This currently returns one broken entry : devtools, also reported here : http://bugs.archlinux.org/task/10262
Maybe this information is already obsolete with the new db scripts on the way (well, anyone can dream). And apparently a new devtools will come with the new db script, so that should also fix the db entry issue.
This mail is simply a reminder that it's very easy to check the sync dbs for this kind of mismatch, and that 10262 can probably be closed when a new devtools is added.
Thanks Xavier, I will add this to the set of cron scripts the new db scripts will be using to keep everything in check. Any more integrity checks that belong there?
participants (2)
-
Aaron Griffin
-
Xavier