def install_channel(): add_channel() clear_cache() g_channelSettings['INSTALLER_TYPE'] = "installer" g_channelSettings['INSTALLATION_TYPE'] = g_version_to_install channel_installer.main(g_channelSettings, True)
def run_channel_update(installed_packages): """ Call the channel upgrade/downgrade wizards to maintain old installation up to date with the main channel file when there are new packages additions or deletions. """ if is_channel_installed(): g_channelSettings['INSTALLATION_TYPE'] = "upgrade" if is_development_version(): look_for_invalid_packages(g_channelSettings, installed_packages) copy_default_package.main(False) channel_installer.main(g_channelSettings) else: sublime.set_timeout_async(check_for_the_first_time, 1000)
def test_installationAndUninstallationStable(self): installation_wizard.unpack_settigns(settings.g_channelSettings) installation_wizard.add_channel() installation_wizard.clear_cache() installation_wizard.g_channelSettings['INSTALLER_TYPE'] = "installer" installation_wizard.g_channelSettings['INSTALLATION_TYPE'] = "stable" installation_wizard.g_channelSettings[ 'SKIP_INSTALLATION_QUESTIONS'] = "Useful for Automated Unit Testing" installer_thread = channel_installer.main( installation_wizard.g_channelSettings, True) installer_thread.join() self.fail("Not yet implemented")
def uninstall_channel(): g_channelSettings['INSTALLER_TYPE'] = "uninstallation" g_channelSettings['INSTALLATION_TYPE'] = "stable" channel_installer.main(g_channelSettings, True)