[Yum-devel] [UG] [PATCH] Don't fail when size is unknown

Martin Kletzander mkletzan at redhat.com
Fri Apr 5 13:11:26 UTC 2013


On 04/05/2013 01:05 PM, Zdenek Pavlas wrote:
> Hi!
> 
>> I've hit the following problem numerous times, mainly when grabbing a
>> local file.
> 
>>>> urlgrabber.urlgrab('file:///etc/passwd', 'bla')
> '/etc/passwd'
>>>> urlgrabber.urlgrab('file:///etc/passwd', 'bla', copy_local=True)
> 'bla'
> 
> I can't reproduce that.  What version of urlgrabber are you using?
> 

Hi, I've noticed that on 3.9.1.  I've found out this reproduces only if
there is a callback_obj set for the grabber.  The main thing I see it
fail is with 'python setup.py test' on current virt-manager git HEAD.
However, when trying on updated fedora, this doesn't fail...

So I guess the problem was that I haven't tried this with current HEAD
(noob mistake), sorry for that.  The problem is fixed in commit f4e57ece
[1] and I was trying out pure 3.9.1 which doesn't have this commit in.

I apologize again for the confusion,
Martin

[1] http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=f4e57ece


More information about the Yum-devel mailing list