deb822: support for "parsed" dependencies

Stefano Zacchiroli zack at debian.org
Thu Jun 19 14:19:40 UTC 2008


On Thu, Jun 19, 2008 at 04:08:37PM +0200, Stefano Zacchiroli wrote:
> As an interactive top-level s

Here there was supposed to be an example :) The intended sentence was
something like "as an interactive top-level speaks more than 1000
words". Here it goes:

  zack at aquarium:~/pkg-python-debian/debian_bundle$ python
  Python 2.5.2 (r252:60911, May 28 2008, 08:35:32) 
  [GCC 4.2.4 (Debian 4.2.4-1)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import deb822
  >>> it=deb822.Packages.iter_paragraphs(file('p'))
  >>> p=it.next()
  >>> p.depends()
  [[{'version': ('>=', '2.7-1'), 'name': 'libc6'}], [{'name': 'libx11-6'}], [{'name': 'libxext6'}]]
  >>> p=it.next()
  >>> p.recommends()
  [[{'name': 'bzip2'}], [{'name': 'lpr'}, {'name': 'rlpr'}, {'name': 'cupsys-client'}], [{'name': 'wdiff'}]]

Cheers

-- 
Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
I'm still an SGML person,this newfangled /\ All one has to do is hit the
XML stuff is so ... simplistic  -- Manoj \/ right keys at the right time
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-python-debian-discuss/attachments/20080619/ea47b176/attachment.pgp 


More information about the pkg-python-debian-discuss mailing list