How do I know if a package is supported from python-apt

Sebastian Heinlein glatzor at ubuntu.com
Fri Jan 12 08:03:37 GMT 2007


On Do, 2007-01-11 at 15:30 +0200, Noam Raphael wrote:

> Thanks! I don't understand all the complexities of package sources,
> but can I assume that if the candidateOrigin list contains one item
> which is supported, then the package is supported?

A short example:

import apt
cache = apt.Cache()
print cache["xterm"].candidateOrigin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20070112/d723d657/attachment-0001.pgp 


More information about the ubuntu-devel mailing list