mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -32,8 +32,7 @@ assert_running_as_root(strip_lib_from_paths=True)
|
||||
os.umask(0o22)
|
||||
|
||||
logging.Formatter.converter = time.gmtime
|
||||
logging.basicConfig(format="%(asctime)s upgrade-zulip: %(message)s",
|
||||
level=logging.INFO)
|
||||
logging.basicConfig(format="%(asctime)s upgrade-zulip: %(message)s", level=logging.INFO)
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print(FAIL + f"Usage: {sys.argv[0]} <tarball>" + ENDC)
|
||||
@@ -57,15 +56,17 @@ try:
|
||||
|
||||
logging.info("Unpacking the tarball")
|
||||
unpack_zulip = os.path.realpath(os.path.join(os.path.dirname(__file__), 'unpack-zulip'))
|
||||
deploy_path = subprocess.check_output([unpack_zulip, archived_tarball_path],
|
||||
preexec_fn=su_to_zulip, universal_newlines=True)
|
||||
deploy_path = subprocess.check_output(
|
||||
[unpack_zulip, archived_tarball_path], preexec_fn=su_to_zulip, universal_newlines=True
|
||||
)
|
||||
|
||||
# Chdir to deploy_path and then run upgrade-zulip-stage-2 from the
|
||||
# new version of Zulip (having the upgrade logic run from the new
|
||||
# version is much better for fixing bugs in the upgrade process).
|
||||
deploy_path = deploy_path.strip()
|
||||
os.chdir(deploy_path)
|
||||
subprocess.check_call([os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path,
|
||||
*deploy_options])
|
||||
subprocess.check_call(
|
||||
[os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path, *deploy_options]
|
||||
)
|
||||
finally:
|
||||
release_deployment_lock()
|
||||
|
||||
Reference in New Issue
Block a user