Source code

Revision control

Copy as Markdown

Other Tools

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
from __future__ import absolute_import, print_function, unicode_literals
from mozboot.base import BaseBootstrapper
from mozboot.linux_common import LinuxBootstrapper
class GentooBootstrapper(LinuxBootstrapper, BaseBootstrapper):
def __init__(self, version, dist_id, **kwargs):
BaseBootstrapper.__init__(self, **kwargs)
self.version = version
self.dist_id = dist_id
def install_system_packages(self):
def ensure_system_packages(self):
["emerge", "--noreplace", "--quiet", "app-arch/zip", "dev-util/watchman"]
def install_browser_packages(self, mozconfig_builder, artifact_mode=False):
# TODO: Figure out what not to install for artifact mode
def install_browser_artifact_mode_packages(self, mozconfig_builder):
self.install_browser_packages(mozconfig_builder, artifact_mode=True)
def _update_package_manager(self):
self.run_as_root(["emerge", "--sync"])
def upgrade_mercurial(self, current):
self.run_as_root(["emerge", "--update", "mercurial"])