Comment 3 for bug 879268

Revision history for this message
Michael Vogt (mvo) wrote :

This code works for me in a lucid chroot with a oneiric target in sources.list:

import apt
cache=apt.Cache(rootdir="./aptroot")
apt.apt_pkg.config.set("APT::Acquire::Translation", "en")
cache.update()
cache.open()
print cache["apt"].summary
print cache["apt"].description