Daniel Burrows wrote: > On Mon, Jan 14, 2008 at 08:11:08PM -0800, Daniel Burrows <[EMAIL PROTECTED]> > was heard to say: >> On Mon, Jan 14, 2008 at 06:16:58PM +0200, Eddy Petrișor <[EMAIL PROTECTED]> >> was heard to say: [..] >>> as a different application, which I don't in debtags' case, apt-get >>> update/aptitude upadate should automatically pull in a debtags update. >> How does aptitude provide progress indication for a debtags download? >> >> What if something goes wrong (e.g., network error)? How does it get [..]
> OK, I've looked a bit more at this. In the default configuration, > it's perfectly fine to run "debtags update"; this just scavenges > information from the apt cache and builds the debtags cache from it. That sounds the right thing to do. > Unfortunately, that's not the case when debtags is given a network > source. In fact, enabling the example source (on "iterating.org") I was under the impression that information was taken from the debtags page. > causes debtags, or rather wget invoked by debtags, to spew a bunch of > information directly to the terminal. If the connection times out, as > is happening right now, wget will retry twenty times (according to its > manpage) before giving up. Taking into account that iterating.org is not an official debian resource, I think is ok to leave it out. > other hand, I see a "--local" option to "debtags update" that will > suppress network updates. So does another option called "--reindex". > The manpage doesn't make the distinction clear, but I guess that --local > will scan the apt cache and extract tag information, whereas --reindex > just rebuilds the debtags index? Probably Enrico will clear this up, eventually with a documentation fix ;-) > So, to summarize: it appears that "/usr/bin/debtags --local > /dev/null > 2>&1" > will update the debtags cache so it reflects the current state of the apt > database, it should be run after updating the apt lists, and people who > have enabled a network source for debtags are responsible for updating > that source themselves from time to time until debtags gets an apt > method and/or pkgAcquire::Item subclass. Does that seem reasonable? Yes. -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein