commit: 796b11a582173ee886cb6c21ebadb4bc12c0dda7 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Fri Dec 26 10:16:04 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Dec 26 11:19:10 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=796b11a5
Fix --jobs-tmpdir-require-free-gb=0 Setting --jobs-tmpdir-require-free-gb did not disable the check, although it should. Fix this. Bug: https://bugs.gentoo.org/967853 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> Part-of: https://github.com/gentoo/portage/pull/1534 Closes: https://github.com/gentoo/portage/pull/1534 Signed-off-by: Sam James <sam <AT> gentoo.org> lib/_emerge/Scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_emerge/Scheduler.py b/lib/_emerge/Scheduler.py index 9e4128704b..30cdaff6bb 100644 --- a/lib/_emerge/Scheduler.py +++ b/lib/_emerge/Scheduler.py @@ -233,7 +233,7 @@ class Scheduler(PollScheduler): self._set_max_jobs(max_jobs) self._running_root = trees[trees._running_eroot]["root_config"] self._jobs_tmpdir_require_free_gb = myopts.get("--jobs-tmpdir-require-free-gb") - if not self._jobs_tmpdir_require_free_gb: + if self._jobs_tmpdir_require_free_gb is None: # dev-lang/rust-1.77.1: ~16 GiB # www-client/chromium-126.0.6478.57: ~18 GiB self._jobs_tmpdir_require_free_gb = 18 @@ -1833,7 +1833,7 @@ class Scheduler(PollScheduler): # jobs and no jobs in the _merge_wait_queue. return True - if (self._jobs_tmpdir_require_free_gb is not None) and hasattr(os, "statvfs"): + if self._jobs_tmpdir_require_free_gb and hasattr(os, "statvfs"): tmpdirs = set() for root in self.trees: settings = self.trees[root]["root_config"].settings
