Exemple #1
0
 def configure(force: bool) -> None:
     """
     Downloads RR from Github and installs it
     :param force: True to install even if nothing has changed
     """
     mozilla_rr = get_plugin_conf("base", "rr")
     installer = Installer.factory(mozilla_rr["rr"], force)
     installer.run()
Exemple #2
0
 def configure(force: bool) -> None:
     """
     Downloads RR from Github and installs it
     :param force: True to install even if nothing has changed
     """
     mozilla_rr = get_plugin_conf("base", "rr")
     installer = Installer.factory(mozilla_rr["rr"], force)
     installer.run()
Exemple #3
0
def get_programs_dependencies() -> list:
    """
    Collects all programs dependencies and returns them in a list
    :return: list of program dependencies
    """
    dependencies = []
    programs = get_global_conf().getlist("install", "programs")

    for program in programs:
        conf = get_program_conf(program)

        for section in conf.sections():
            with suppress(NoOptionError):
                dependencies += conf.getlist(section, "depend")

    for plugin in get_global_conf().getlist("plugins", "enabled_plugins"):
        conf = get_plugin_conf(*plugin.split("."))
        for section in conf.sections():
            with suppress(NoOptionError):
                dependencies += conf.getlist(section, "depend")

    return dependencies