mirror of https://github.com/zulip/zulip.git
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:
parent
9b30594bb6
commit
b4108f7a5f
|
@ -125,8 +125,14 @@ def main():
|
|||
os.chdir(ZULIP_PATH)
|
||||
|
||||
run(["sudo", "./scripts/lib/setup-apt-repo"])
|
||||
# Add groonga repository to get the pgroonga packages
|
||||
|
||||
# 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", "-y", "install", "--no-install-recommends"] + APT_DEPENDENCIES[codename])
|
||||
|
||||
|
|
Loading…
Reference in New Issue