[Yum-devel] addInstall callback should take pkg object

seth vidal skvidal at phy.duke.edu
Thu Nov 17 15:52:11 UTC 2005


On Thu, 2005-11-17 at 10:45 -0500, Paul Nasrat wrote:
> I'd like to suggest a change to the object we pass around in the
> callback for yum HEAD.
> 
> Currently in depsolve.py we do:
> 
> hdr = txmbr.po.returnLocalHeader()
> rpmfile = txmbr.po.localPkg()
> 
> ...
> self.ts.addInstall(hdr, (hdr, rpmfile), txmbr.ts_state)
> 
> I'd suggest changing to 
> 
> self.ts.addInstall(hdr, po, txmbr.ts_state)
> 
> As we can access hdr/rpmfile from po it's not a major headache for
> people - if we need we could always override __getitem__ to provide
> backwards compatibility if we feel the change is too intrusive.
> 
> This means I can do things like get at basepath for split media
> installs, etc.
> 

sounds reasonable to me.


-sv





More information about the Yum-devel mailing list