(args)
Run installations
Run installations
Run installations
def run(args):
    """Run installations"""

    # Interactive installation? I.e., requires user to press "y/n"
    interactive = (not args.yes)

    # Configure the subprocess runner
    runner.set_dry(args.dry_run)

    if (args.target is not None):
        target = target_map[args.target]
    else:
        info = config.read_cfg_file(args.cfg, args.cfg_dir)
        if (info is None):
            return
        target = info['setup']['type']

    _check_distro(target)

    if (os.geteuid() != 0 and not args.dry_run):
        util.fill_print("Some commands require root access and may prompt "
                        "for a password")

    if (args.dry_run):
        util.print_header("Dry Run Mode")

    # Update package index
    _update_pkg_repo(interactive)

    # Common dependencies (regardless of setup)
    _install_common(interactive=interactive, update=args.update, btc=args.btc)

    # Install setup-specific dependencies
    _install_specific(target, interactive=interactive, update=args.update)
def run ( args ) : # Interactive installation? I.e., requires user to press "y/n" interactive = ( not args . yes ) # Configure the subprocess runner runner . set_dry ( args . dry_run ) if ( args . target is not None ) : target = target_map [ args . target ] else : info = config . read_cfg_file ( args . cfg , args . cfg_dir ) if ( info is None ) : return target = info [ 'setup' ] [ 'type' ] _check_distro ( target ) if ( os . geteuid ( ) != 0 and not args . dry_run ) : util . fill_print ( "Some commands require root access and may prompt " "for a password" ) if ( args . dry_run ) : util . print_header ( "Dry Run Mode" ) # Update package index _update_pkg_repo ( interactive ) # Common dependencies (regardless of setup) _install_common ( interactive = interactive , update = args . update , btc = args . btc ) # Install setup-specific dependencies _install_specific ( target , interactive = interactive , update = args . update )