[Yum-devel] [Patch 2/4] Defining other repository types in yum

seth vidal skvidal at linux.duke.edu
Thu Apr 13 05:20:51 UTC 2006

On Wed, 2006-04-12 at 14:52 -0400, James Bowes wrote:
> In our work, we found repository.get() to be very tied to the underlying 
> urlgrabber-based implementation (mainly due to the byte ranges).
> There were only two cases when get() was used, either to download a full 
> RPM or just the header. By making two separate methods, the details of 
> byte ranges can be hidden inside the Repository.
> Also, classes implementing the Repository interface that get their 
> header information from elsewhere can do so easily ;)

I'm mostly concerned with things that use get() for other files/misc

Especially future grabs for full security update information or any
other meta-metadata that might come up.

> I'll have to use ignorance as a defense for the properties thing; I had 
> never seen the property builtin function before last night. Anyhoo, I 
> love it, so I'll probably get working on a patch that replaces the 
> getters and setters with properties.

great. if you check out yum/comps.py its used in there quite a bit.


More information about the Yum-devel mailing list