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 themselves. 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: http://buildd.emdebian.org/svn/browser/current/website/trunk/english/toolchains ////////////////////////////////////////////////////////////////// // 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 <[EMAIL PROTECTED]> Working examples: http://www.emdebian.org/toolchains/search.php http://www.emdebian.org/packages/search.php http://www.emdebian.org/locale/search.php (Actually all are the same file with different configurations passed to parse-apt.) -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
signature.asc
Description: This is a digitally signed message part