Re: [Yum-devel] [PATCH] Do the same no statvfs check when using relative paths.

2012-09-02 Thread James Antill
On Sun, 2012-09-02 at 16:17 +0200, tim.laurid...@gmail.com wrote: > On Fri, Aug 31, 2012 at 9:58 PM, James Antill wrote: > > > +if size and (copy_local or not _all_urls_are_files(url)): > > dirstat = os.statvfs(os.path.dirname(local)) > > avail = dirstat.f_bavail

Re: [Yum-devel] [PATCH] Do the same no statvfs check when using relative paths.

2012-09-02 Thread tim.laurid...@gmail.com
On Fri, Aug 31, 2012 at 9:58 PM, James Antill wrote: > +if size and (copy_local or not _all_urls_are_files(url)): > dirstat = os.statvfs(os.path.dirname(local)) > avail = dirstat.f_bavail * dirstat.f_bsize > if avail < long(size): > Looks like self