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

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



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 have added /etc/apt/apt.conf.d which can be used by debconf and
listchanges to assure relative order with respect to one another.

Matt: I have also added this funky new option:

DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";

Which sets the pipe protocol format. 

Version 1 is the current style with just the file names. Version 2 
looks like this:

VERSION 2
[APT Config Data]
\n
pkg 1.234 < 1.34  /var/cache/...deb
[...]
\n

Which means you do not have to parse the status file or the control file..
Eg:

auric{jgg}~/apt2/build/bin#./apt-get install apt -qy --reinstall
apt 0.3.19 = 0.3.19 /org/ftp.debian.org/ftp/dists/woody/main/binary-i386/base/apt_0.3.19.deb
apt 0.3.19 = 0.3.19 **CONFIGURE**

auric{jgg}~/apt2/build/bin#./apt-get remove apt -qy
apt 0.3.19 > - **REMOVE**

auric{jgg}~/apt2/build/bin#./apt-get install xlib6g -qy
libc6 2.1.3-10 < 2.2-4 /org/ftp.debian.org/ftp/dists/woody/main/binary-i386/base/libc6_2.2-4.deb
libc6 2.1.3-10 < 2.2-4 **CONFIGURE**
xfree86-common - < 4.0.1-8 /org/ftp.debian.org/ftp/dists/woody/main/binary-all/x11/xfree86-common_4.0.1-8.deb

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.. 

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)

You can use:
DPkg::Pre-Install-Pkgs {"cat";};
DPkg::Tools::Options::cat::Version "2";

To see the output.

The experimental version is at:
deb http://klecker.debian.org/~jgg apt/

Jason



Reply to: