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.
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.