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

Re: apt-listchanges, dpkg-preconfigure ordering in apt.conf



On Thu, Nov 30, 2000 at 01:50:14AM -0700, Jason Gunthorpe wrote:

> On Wed, 15 Nov 2000, Joey Hess wrote:
> 
> > Looks like the ordering of the calls to dpkg-preconfigure and
> > apt-listchanges in apt.conf are essentially random -- I think people
> 
> It is not random, it is based on the order the packages added their
> entries to apt.conf.

I think Joey meant random as in unpredictable, not random as in
nondeterministic.

> I have added /etc/apt/apt.conf.d which can be used by debconf and
> listchanges to assure relative order with respect to one another.

Delighted.  I propose to drop 20-apt-listchanges.conf there, and debconf can
use some number larger than 20.

> Version 1 is the current style with just the file names. Version 2 
> looks like this:
> 
> [lots of useful stuff in addition to the file names]
> 
> Which means you do not have to parse the status file or the control file..

This looks great.  I had to fiddle a bit with debconf's apt-extracttemplates to
get it to compile with the new libapt-pkg (specifically, recompiling using
APT_COMPATIBILITY), but I have apt 0.4.7 up and running.

Unfortunately, I will still have to read the control file in order to get
source package information, unless you want to add that.  Since Source: can
contain spaces, this might make the format a little more complex.

> You also should talk to Brendan O'Dea about his Perl-apt bindings project.
> That will allow you to eliminate alot more horribleness related to
> dpkg-deb, and will also be much faster.. 

Yes, that would be very nice.

> The inclusion of the APT config data will let tools that want to use this
> interface share the same configuration space as the main APT process.
> 
> You should also really be using /etc/apt for your config file - there is a
> subdir for a reason.. Having it in the same format as APT's is also a sane
> idea (talk to bod again)

I'm all for this.  I can start writing my configuration in /etc/apt/apt.conf.d,
and read it myself until a smart enough version of apt is released.  Where
should I put my namespace?  apt-listchanges::*?  APT::listchanges::*?

-- 
 - mdz



Reply to: