I want exactly what Seth and Uwe are saying.
On Tue, Mar 31, 2009 at 10:20 AM, Seth Vidal <skvidal(a)fedoraproject.org>wrote:
On Tue, 31 Mar 2009, James Antill wrote:
On Mon, 2009-03-30 at 23:37 -0500, Sachin wrote:
>
>> Hi
>>
>> Suggestion
>>
>> 1) There should be option called --size in yum which can restrict the
>> space which can be used yum. This would be beneficial to machine with
>> low disk space.
>>
>
> This seems like a bad idea, we already do:
>
> dirstat = os.statvfs(po.repo.pkgdir)
> if (dirstat.f_bavail * dirstat.f_bsize) <= long(po.size):
> adderror(po, _('Insufficient space in download directory
> %s\n'
> " * free %s\n"
> " * needed %s") %
>
> ...which is done as we download each package. I'm not sure exactly what
> feature you want, but I assume something like doing the above check
> before we download anything based on "expected total download size" and
> then maybe removing some space from what we count as "free"?
>
>
I think Sachin wants it to batch the updates in size.
So you do them in batches of 1gb installed + downloaded space at a time.
-sv
--
fedora-devel-list mailing list
fedora-devel-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list