We had that fixed for some time, but had to revert this now, because
code broke.
Anyway, you can get that behavior by clearing the config yourself,
before creating the cache object; something like:
for key in apt_pkg.config:
del apt_pkg.config[key]
apt_pkg.config["dir"] = rootdir
apt_pkg.init_config()
and then creating the cache using the rootdir argument.
** Changed in: python-apt (Ubuntu)
Status: New => Confirmed
** Bug watch added: Debian Bug tracker #728274
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728274
** Also affects: python-apt (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728274
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1238616
Title:
creating apt cache with rootdir= still considers global apt config
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1238616/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs