From c6cde1cf5c60d162bc80e3d4f69cdf1032e86d3c Mon Sep 17 00:00:00 2001 From: rht Date: Sun, 16 Dec 2018 19:45:29 +0000 Subject: [PATCH] provision: Rename install_apt_deps to a more generic install_system_deps. --- tools/lib/provision.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/lib/provision.py b/tools/lib/provision.py index a69f021784..ce4e05da31 100755 --- a/tools/lib/provision.py +++ b/tools/lib/provision.py @@ -230,7 +230,7 @@ def setup_shell_profile(shell_profile): write_command(source_activate_command) write_command('cd /srv/zulip') -def install_apt_deps(): +def install_system_deps(): # type: () -> None if vendor == 'CentOS': install_yum_deps() @@ -286,9 +286,9 @@ def main(options): if (new_apt_dependencies_hash != last_apt_dependencies_hash): try: - install_apt_deps() + install_system_deps() except subprocess.CalledProcessError: - # TODO: Remove this when we split install_apt_deps. + # TODO: Make CentOS have similar retry behavior to apt here. if vendor == 'CentOS': traceback.print_exc() exit(1) @@ -300,7 +300,7 @@ def main(options): # is out of date, we run it explicitly here so that we # recover automatically. run(['sudo', 'apt-get', 'update']) - install_apt_deps() + install_system_deps() with open(apt_hash_file_path, 'w') as hash_file: hash_file.write(new_apt_dependencies_hash) else: