Bug 1914501 - Don't run emerge when all packages have been filtered out. r=firefox-build-system-reviewers,sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D220203
This commit is contained in:
Mike Hommey 2024-08-27 09:00:31 +00:00
parent d69443aaf6
commit 46f3c64b1b

View File

@ -20,7 +20,8 @@ class GentooBootstrapper(LinuxBootstrapper, BaseBootstrapper):
}
# watchman is available but requires messing with USEs.
packages = [DISAMBIGUATE.get(p, p) for p in packages if p != "watchman"]
self.run_as_root(["emerge", "--noreplace"] + packages)
if packages:
self.run_as_root(["emerge", "--noreplace"] + packages)
def _update_package_manager(self):
self.run_as_root(["emerge", "--sync"])