When you try to emerge a file when /var/tmp if full, it will continue to try and fetch the program repeatedly, even when there is no more free space. Reproducible: Always Steps to Reproduce: 1. fill /var/tmp 2. emerge package 3. profit? Actual Results: Printed an out of space error, then retried to fetch immediatly Expected Results: Something a bit more intelligent, like wait awhile before trying to fetch this same file, or waiting for the space to free up
Small change: this error occures when /usr/portage is full, not /var/tmp.
We can compare os.statvfs(distdir).f_bavail to the current download size and bail out if it appears that there's not enough space.
That would make more sense, along with a proper message to that effect (either displayed or emailed).
This is supposed to be fixed in portage-2.2_pre5 or earlier.