[Yum-devel] [dnf] new build: dnf-0.2.21-1.git050524e.fc18
James Antill
james at fedoraproject.org
Tue Feb 12 17:34:41 UTC 2013
On Tue, 2013-02-12 at 13:30 +0100, Ales Kozumplik wrote:
> Everything happens in the same order, but it directly happens to the
> main configuration object. IOW, whatever the tricky order of the
> configuration initialization, it shouldn't need a design with two
> different objects to perform it.
Trying to be much shorter, the problem that two objects solves is that
you have API users which look like:
yb = YumBase()
yb.preconf.installroot = "/myinstallroot"
print yb.conf.whatever
...so you need a way to set a subset of the available configuration
before the "rest" of the configuration is loaded.
We used to do this with a single object in yum, and if the API user
wanted to set installroot etc. they had to do:
yum.doConfigSetup(root='whatever')
...however that was significantly worse than having two objects for any
non-trivial example.
More information about the Yum-devel
mailing list