[Yum-devel] Need to destroy and rebuild the ts?y
seth vidal
skvidal at phy.duke.edu
Fri Feb 27 00:03:31 UTC 2004
> The a,i, and u do not represent state they represent the action to take
> when doing .check() and .run()
>
> i=install, u=update, a= just available to the transaction when computing
> dependencies but no action should be performed with it.
>
how do you think the resolved deps are put together?
> There is no reason to both in the same hdr. In fact, you are not
> changing anything, you are adding another thing the todo list.
You can't change the state of something once it is included as 'a'.
So if you want to add something as 'i' it will be ignored.
You have a set of packages, you know want to install some subset of
them. You mark that subset as 'i'. You then do a ts.check(). It returns
back the problems and if you have things in mode 'a' it returns to you
it's estimate of which packge provides that dependency. Now, then you
have to add those into the ts in mode 'i' or 'u'. You can't CHANGE the
state in a single ts. You must destroy the ts and start over.
There is no other way to resolve the dependency when using addInstall
'a'
Feel free to prove me wrong - but I'm fairly positive about this.
The method you're describing is NOT how the transaction sets will
function. You may want them to function that way but that's not how it
works.
Moreover this discussion is pointless. We're not going to be using
addInstall 'a' mode any more and we should be able to get away with
preserving the ts.
You really need to stop focusing on yum 2.0.X and focus on what things
are needed for HEAD. 2.0.x is not going to get a lot of love to it in
significant ways, it's not worth the time.
-sv
More information about the Yum-devel
mailing list