[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2015-06-18 Thread Julian Andres Klode
As there's nothing we can do about that without breaking other use cases, we have to declare that working as intended. Please clear your configuration before setting RootDir like options and then re-init the config. Sorry ** Changed in: python-apt (Ubuntu) Status: Confirmed => Opinion --

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2015-06-10 Thread Bug Watch Updater
** Changed in: python-apt (Debian) Status: New => Won't Fix -- 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

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2014-03-15 Thread Bug Watch Updater
** Changed in: python-apt (Debian) Status: Unknown => New -- 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 m

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2014-03-15 Thread Julian Andres Klode
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

Re: [Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Martin Pitt
Hello Julian, Julian Andres Klode [2013-10-11 15:47 -]: > We are limited here, because APT uses a global configuration instance, > so in order to use the configuration of the other root directory, we'd > have to drop the other configuration because they cannot co-exist. Does that mean it's no

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Martin Pitt
Michal and I debugged this over IRC, and tracked it down. He had an /etc/apt/apt.conf with explicitly setting Architecture:, and creating an apt.Cache(rootdir="...") object still takes that global configuration into account. The attached test script works on a default installation, downloads the a

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Martin Pitt
Michael Vogt, do you have an idea about this? -- 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

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Martin Pitt
Michal and I debugged this over IRC, and tracked it down. He had an /etc/apt/apt.conf with explicitly setting Architecture:, and creating an apt.Cache(rootdir="...") object still takes that global configuration into account. The attached test as ** Summary changed: - Retracing armhf doesn't work

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Julian Andres Klode
We are limited here, because APT uses a global configuration instance, so in order to use the configuration of the other root directory, we'd have to drop the other configuration because they cannot co-exist. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

2013-10-11 Thread Julian Andres Klode
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 su