Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / mozboot / mozboot / solus.py
blob664b5285aae385bad95600d49bb7ba54b28e70ef
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 from mozboot.base import BaseBootstrapper
6 from mozboot.linux_common import LinuxBootstrapper
9 class SolusBootstrapper(LinuxBootstrapper, BaseBootstrapper):
10 """Solus experimental bootstrapper."""
12 def __init__(self, version, dist_id, **kwargs):
13 print("Using an experimental bootstrapper for Solus.")
14 BaseBootstrapper.__init__(self, **kwargs)
16 def install_packages(self, packages):
17 self.package_install(*packages)
19 def _update_package_manager(self):
20 pass
22 def upgrade_mercurial(self, current):
23 self.package_install("mercurial")
25 def package_install(self, *packages):
26 command = ["eopkg", "install"]
27 if self.no_interactive:
28 command.append("--yes-all")
30 command.extend(packages)
32 self.run_as_root(command)