From 595845153dbc1626bff1f4dc92fb2a5ff54d7979 Mon Sep 17 00:00:00 2001 From: vitaut Date: Thu, 21 May 2015 07:20:26 -0700 Subject: [PATCH] Fix nodesource.list creation --- support/travis-build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/travis-build.py b/support/travis-build.py index be52ce27..f2f4c655 100755 --- a/support/travis-build.py +++ b/support/travis-build.py @@ -17,8 +17,8 @@ if build == 'Doc': travis = 'TRAVIS' in os.environ # Install dependencies. if travis: - with open('/etc/apt/sources.list.d/nodesource.list', 'a') as f: - f.write('deb http://deb.nodesource.com/node_0.10 precise main\n') + check_call("echo 'deb https://deb.nodesource.com/node_0.10 precise main' | " + + "sudo tee /etc/apt/sources.list.d/nodesource.list", shell=True) check_call(['sudo', 'apt-get', 'update']) check_call(['sudo', 'apt-get', 'install', 'python-virtualenv', 'doxygen', 'nodejs']) check_call(['npm', 'install', '-g', 'less'])