[Yum] I'm back and future stuff

seth vidal skvidal at phy.duke.edu
Fri Jun 28 03:33:52 UTC 2002


> >> It is quite reasonable. What about make public CVS?
> >> I think it's need not only for me :)
> SV> public cvs is not entirely secure and it makes me edgy.
> 
> nightly builds ?

well that is trivial to accomplish :)

> Nono! :)
> You need only add to package structure a new property - weight,
> then you download package - you selet package with same name but with 
> greater weight.
> I can produce patch if anybody except me need it.

I'm not even certain what you mean now. Can you explain that?


 
> >> also as i say - we make sort of abstraction for downloading.
> >> It's very usefull cause original urllib url handlers to weak for serious
> >> work.
> look:
> 
> def urlgrab(url, filename, grab_mode = reget_mode.SMART):
>     try:
>         _downloader = downloader(filename, url, grab_mode)
>     except IOError, e:
>         log(5, 'Error opening local file "%s" to download from "%s"' % (filename, url))
>     
>     if grab_mode != reget_mode.AGAIN:
>         try:
>             _f_size = _downloader.file_size()
>             if _f_size > 0:
>                 log(5, 'Continue "%s" %s download from "%s"' % (filename, _f_size, url))
>         except:
>             pass
>     else:
>         log(5, 'Forced download "%s" from "%s"' % (filename, url))
>     try:
>         _downloader.open()
>         _downloader.get()
>         _downloader.close()
>     except IOError, e:
>         errorlog(0, 'IOError: %s, URL: %s'  % (e, url))
>         sys.exit(1)
>     return filename
> -------------------------
> do you understand what i mean ?
> it's more abstractive and look and work much better for me.
> 


I don't see how the above made the url grabbing easier to
read/understand. and where is _downloader?

I guess I need to see more to understand what/why you did that.


-sv

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum/attachments/20020627/c4a1937c/attachment-0001.pgp 


More information about the Yum mailing list