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 run(self): sublime.active_window().run_command("show_panel", { "panel": "console", "toggle": False }) copy_default_package.main(True)