[Yum-devel] Need to destroy and rebuild the ts?

seth vidal skvidal at phy.duke.edu
Fri Feb 27 05:38:33 UTC 2004


> Seth, you are misunderstanding how this works--at least in the rpm4.3
> A Quote from doxygen
> 
> A rpm.ts object has the following methods:
> 
>       * addInstall(hdr,data,mode) Add an install element to a
>         transaction set. 
>         Parameters:
>                 hdr 
>                 the header to be added 
>                 data 
>                 user data that will be
>                 passed to the transaction
>                 callback during transaction
>                 execution 
>                 mode 
>                 optional argument that
>                 specifies if this package
>                 should be installed ('i'),
>                 upgraded ('u'), or if it is
>                 just available to the
>                 transaction when computing
>                 dependencies but no action
>                 should be performed with it
>                 ('a').
> 
> 
> > 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.
> 
> I can only say read the source.    


And I can only say USE the source. Don't just read it. rpm is notorious
for being documented differently than it actually functions.



> > 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.
> 
> Huh, I think that I am looking at HEAD, I just reran
> 
> cvs -d :pserver:anonymous at devel.linux.duke.edu:/cvsroot/yum/cvs co -r
> HEAD yum
> 
> Am looking at nevral.py lines 308 -321
> 


The code may still be there but that's only b/c I haven't deleted the
file from cvs yet. This is what I've been saying. nevral.py has no place
in yum anymore.

-sv





More information about the Yum-devel mailing list