[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#207431: post-update hook



On Tue, Aug 26, 2003 at 04:24:29PM -0400, Joey Hess wrote:

> Probably the best way to fix tasksel's bug #114721 (which our users
> stumble over again and again), as well as to remove a common FAQ would
> be for apt to get a post-update hook. Then dpkg or something else could
> drop a file into apt.conf.d to apt-cache dumpavail > /var/lib/dpkg/available
> 
> I expect we might find other uses for such a hook as well. I'd never
> have expected DPkg::Pre-Install-Pkgs to be used by something like
> apt-listchanges when I helped add that hook to apt. Of course the dpkg
> available file may eventually go away, if dpkg 2.0 is ever finished, but
> we will have it for sarge, and this hook could be implemented before
> sarge is released.

Yet more fallout from #113616. :-/

Is it really a problem to use a pipe to apt-cache dumpavail for this?  Sure,
it's somewhat slower than reading the available file, but it still takes
less than a second on a relatively modest system.  It's not as if users will
run tasksel frequently.

This wouldn't be too hard to implement, but isn't it the wrong thing to have
apt overwrite dpkg's information without dpkg asking?  If you want the
information from apt instead, it's pretty easy to ask apt for it.

-- 
 - mdz



Reply to: