mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
Rerun add-apt-repository for ppa:groonga/ppa
On occasion, provisioning will fail because groonga is not added. Add a check to see if the command fails and retry.
This commit is contained in:
@@ -125,8 +125,14 @@ def main():
|
|||||||
os.chdir(ZULIP_PATH)
|
os.chdir(ZULIP_PATH)
|
||||||
|
|
||||||
run(["sudo", "./scripts/lib/setup-apt-repo"])
|
run(["sudo", "./scripts/lib/setup-apt-repo"])
|
||||||
# Add groonga repository to get the pgroonga packages
|
|
||||||
run(["sudo", "add-apt-repository", "-y", "ppa:groonga/ppa"])
|
# Add groonga repository to get the pgroonga packages; retry if it fails :/
|
||||||
|
try:
|
||||||
|
run(["sudo", "add-apt-repository", "-y", "ppa:groonga/ppa"])
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
print(WARNING + "`Could not add groonga; retrying..." + ENDC)
|
||||||
|
run(["sudo", "add-apt-repository", "-y", "ppa:groonga/ppa"])
|
||||||
|
|
||||||
run(["sudo", "apt-get", "update"])
|
run(["sudo", "apt-get", "update"])
|
||||||
run(["sudo", "apt-get", "-y", "install", "--no-install-recommends"] + APT_DEPENDENCIES[codename])
|
run(["sudo", "apt-get", "-y", "install", "--no-install-recommends"] + APT_DEPENDENCIES[codename])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user