travis: Remove sources.list patching again

Turns out the other mirrors aren't really more stable either.
This commit is contained in:
Florian Bruhin 2016-03-31 21:26:44 +02:00
parent d30093b877
commit dd9145d650

View File

@ -68,12 +68,6 @@ def folded_cmd(argv):
subprocess.check_call(argv) subprocess.check_call(argv)
def fix_sources_list():
"""The mirror used by Travis has trouble a lot, so switch to another."""
subprocess.check_call(['sudo', 'sed', '-i', r's/us-central1\.gce/us/',
'/etc/apt/sources.list'])
def apt_get(args): def apt_get(args):
folded_cmd(['sudo', 'apt-get', '-y', '-q'] + args) folded_cmd(['sudo', 'apt-get', '-y', '-q'] + args)
@ -132,12 +126,10 @@ elif TRAVIS_OS == 'linux':
pkgs += ['asciidoc'] pkgs += ['asciidoc']
if pkgs: if pkgs:
fix_sources_list()
apt_get(['update']) apt_get(['update'])
apt_get(['install'] + pkgs) apt_get(['install'] + pkgs)
if TESTENV == 'flake8': if TESTENV == 'flake8':
fix_sources_list()
apt_get(['update']) apt_get(['update'])
# We need an up-to-date Python because of: # We need an up-to-date Python because of:
# https://github.com/google/yapf/issues/46 # https://github.com/google/yapf/issues/46