Re: Looking for apt-get internals guide
(this is debian-devel material; please followup there)
On Thu, Nov 06, 2003 at 04:46:39PM -0500, Stephen Gran wrote:
> To do so, I ned to know a little more about apt's guts than I do
> currently, I'm afraid, and I was hoping someone could point me to a good
> reference guide about how apt calls external programs (like
> apt-listchanges) and parsing the syntax that apt calls with and that
> sort of thing.
> Hopefully I've been clear enough - I only have a rough roadmap in my
> head at this point. Other suggestions for smarter ways of doing this
> would be welcome as well.
There is an internals guide in the apt source code, but it isn't going to be
what you want. The best documentation is example code, and there is plenty
of that around. The pipeline data is really pretty much self-explanatory;
add a hook pointing to /bin/cat and watch it for a while.
But, I don't see why you should need to hook into apt at all in order to do
what you want. If the files you change are conffiles, your changes should
be preserved, and if they aren't conffiles, you can divert them.