It needs to use the global configuration, we do not reload configuration files. You can manually clear the config, set rootdir, and then call apt_pkg.init() or the other two init functions after each other.
-- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs