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

Re: can buildd logs be sorted (again)?

On Thu, 2008-10-30 at 20:02 -0600, Raphael Geissert wrote:
> [1] I promised Christoph Berg that I am going to write a PHP extension, actually
> an interface, to libapt's functions; but I haven't been lucky enough to find
> the docs (libapt-pkg-doc isn't what I expected). If somebody can point me to
> the right documents it would be great.

libapt-pkg-doc is what there is, apart from the source. Recursion is a
constant nightmare with the perl bindings for apt so you have to be very
careful in your debugging cases for the PHP version. Take a look at
libcache-apt-perl for a sane way to handle at least some of the apt
bindings with safe recursion. I've no idea whether that design could
work in PHP but it is (hopefully) clearer than the docs for the bindings

You might also want to look at the source code for edos-debcheck and
other routines that do dependency iterations etc.

Note that there *is* a PHP interface to the Packages.gz file itself -
see Emdebian SVN:

    // PHP Apt-file parser, Version 1.2
    // The following PHP functions parse Debian APT-repository files
    // (Packages.gz, Sources.gz) and generate an XHTML summary of them.
    // Written by Jarno Elonen in 2003, 2004

#  Copyright (c) 2003-2006 Jarno Elonen <elonen@iki.fi>

Working examples:



(Actually all are the same file with different configurations passed to


Neil Williams

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: