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
This code works for me in a lucid chroot with a oneiric target in sources.list:
import apt Cache(rootdir= "./aptroot" ) pkg.config. set("APT: :Acquire: :Translation" , "en") apt"].summary apt"].descripti on
cache=apt.
apt.apt_
cache.update()
cache.open()
print cache["
print cache["