mambo/controller.py
def install_packages(simulator_versions, download_directory, setup_simulator):
    '''
    Install the simulator packages for p8 and p9 according
    the host distro
    '''
    for simulator_version in simulator_versions:
        if not setup_simulator.directory_exists(simulator_version):
            setup_simulator.print_line()
            print "Installing the simulator packages..."
            if var.UBUNTU in setup_simulator.get_distro():
                for deb_pkg in os.listdir(download_directory):
                    if deb_pkg.endswith(".deb"):
                        pkg_name = download_directory + "/" + deb_pkg
                        setup_simulator.install_deb(pkg_name)
            else:
                for rpm_pkg in os.listdir(download_directory):
                    if rpm_pkg.endswith(".rpm"):
                        pkg_name = download_directory + "/" + rpm_pkg
                        setup_simulator.install_rpm(pkg_name)

    Install the simulator packages for p8 and p9 according
    the host distro
    
Install the simulator packages for p8 and p9 according
the host distro
Install the simulator packages for p8 and p9 according the host distro
def install_packages(simulator_versions, download_directory, setup_simulator):
    for simulator_version in simulator_versions:
        if not setup_simulator.directory_exists(simulator_version):
            setup_simulator.print_line()
            print "Installing the simulator packages..."
            if var.UBUNTU in setup_simulator.get_distro():
                for deb_pkg in os.listdir(download_directory):
                    if deb_pkg.endswith(".deb"):
                        pkg_name = download_directory + "/" + deb_pkg
                        setup_simulator.install_deb(pkg_name)
            else:
                for rpm_pkg in os.listdir(download_directory):
                    if rpm_pkg.endswith(".rpm"):
                        pkg_name = download_directory + "/" + rpm_pkg
                        setup_simulator.install_rpm(pkg_name)
def install_packages ( simulator_versions , download_directory , setup_simulator ) : for simulator_version in simulator_versions : if not setup_simulator . directory_exists ( simulator_version ) : setup_simulator . print_line ( ) print "Installing the simulator packages..." if var . UBUNTU in setup_simulator . get_distro ( ) : for deb_pkg in os . listdir ( download_directory ) : if deb_pkg . endswith ( ".deb" ) : pkg_name = download_directory + "/" + deb_pkg setup_simulator . install_deb ( pkg_name ) else : for rpm_pkg in os . listdir ( download_directory ) : if rpm_pkg . endswith ( ".rpm" ) : pkg_name = download_directory + "/" + rpm_pkg setup_simulator . install_rpm ( pkg_name )
Install the simulator packages for p8 and p9 according
the host distro
Install the simulator packages for p8 and p9 according the host distro
'''
    Install the simulator packages for p8 and p9 according
    the host distro
    '''
simulator_versions
download_directory
setup_simulator