Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/python/mozboot/mozboot/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  gentoo.py   Sprache: Python

 
# 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 http://mozilla.org/MPL/2.0/.

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_packages(self, packages):
        DISAMBIGUATE = {
            "gzip""app-arch/gzip",
            "tar""app-arch/tar",
        }
        # watchman is available but requires messing with USEs.
        packages = [DISAMBIGUATE.get(p, p) for p in packages if p != "watchman"]
        if packages:
            self.run_as_root(["emerge""--noreplace"] + packages)

    def _update_package_manager(self):
        self.run_as_root(["emerge""--sync"])

    def upgrade_mercurial(self, current):
        self.run_as_root(["emerge""--update""mercurial"])

100%


¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.