On Sun, Sep 14, 2008 at 04:34:50AM +1000, Andrew Vaughan wrote:
> [cc-ed to dhelp's maintainers in case they have any suggestions as to how to 
> debug this/what might be causing this].

    I don't really know the doc-base source code, but I was having a quick
look now, and this seems like it can help debugging (run after something like
that has happened; probably running it now it could help):

    sudo install-docs --dump-db files.db | perl most_recent.pl
    # Show 100 most recently changed documents
    sudo install-docs --dump-db files.db | perl most_recent.pl 100

most_recent.pl being:

---------------------------------- 8< ----------------------------------
#!/usr/bin/perl

use strict;
use warnings;

my $how_many = shift || 50;

my $ignored_first_line = <>;

my $content = "";
eval "\$content = ".join("", <>);

my @most_recent = reverse sort { $a->{CT} <=> $b->{CT} }
                               map { $content->{$_} }
                                   keys %$content;

print join("\n", map { "$_->{ID} ($_->{CT})" } @most_recent[0..$how_many-1]),
"\n";
---------------------------------- >8 ----------------------------------

Apparently, in your case, doc-base thinks that all documents have changed, and
AFAICS it's based on the ctime of the files. The ctime, however, is stored in
files.db (in /var/lib/doc-base/info/files.db). This script will tell you which
are the most recent files, with their timestamps. Maybe that will give you an
idea of why that is happening (maybe the timestamps will have a very high
value, or you will see some document ids that will ring a bell).

    Or maybe it some problem with the clock?

    In any case, please keep me in the loop. I've had similar problems with
dhelp before, and I'm starting to think that I should just *not* reindex
documentation (just register the documents) when doc-base calls dhelp with
more than, say, 20 files. The rationale: I still want people to be able to
search for documentation for things that they just installed (instead of
having to wait a whole week), but then if someone installs more than 20
packages, it's probably some upgrade or something that she doesn't really want
documentation for (in the next couple of days anyway).

    Good luck,

-- 
Esteban Manchado Velázquez <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to