Fetch tsearch_extras packages from GitHub dist repository.

This commit is contained in:
Tim Abbott 2016-03-29 20:58:56 -07:00
parent 970d697e88
commit d8493b071b
1 changed files with 2 additions and 3 deletions

View File

@ -59,7 +59,7 @@ if "--travis" in sys.argv or "--docker" in sys.argv:
# tsearch-extras is an extension to postgres's built-in full-text search. # tsearch-extras is an extension to postgres's built-in full-text search.
# TODO: use a real APT repository # TODO: use a real APT repository
TSEARCH_URL_BASE = "https://dl.dropboxusercontent.com/u/283158365/zuliposs/" TSEARCH_URL_PATTERN = "https://github.com/zulip/zulip-dist-tsearch-extras/raw/master/{}_{}_{}.deb?raw=1"
TSEARCH_PACKAGE_NAME = { TSEARCH_PACKAGE_NAME = {
"trusty": "postgresql-9.3-tsearch-extras" "trusty": "postgresql-9.3-tsearch-extras"
} }
@ -102,8 +102,7 @@ def main():
temp_deb_path = sh.mktemp("package_XXXXXX.deb", tmpdir=True) temp_deb_path = sh.mktemp("package_XXXXXX.deb", tmpdir=True)
sh.wget( sh.wget(
"{}/{}_{}_{}.deb".format( TSEARCH_URL_PATTERN.format(
TSEARCH_URL_BASE,
TSEARCH_PACKAGE_NAME["trusty"], TSEARCH_PACKAGE_NAME["trusty"],
TSEARCH_VERSION, TSEARCH_VERSION,
arch, arch,