Update ARM sysroot image.
This new image include libexif and a few security fixes from Ubuntu. Also, cleanup the downloading code so it fails nicely. R=thestig@chromium.org Review URL: https://codereview.chromium.org/239113004 git-svn-id: http://src.chromium.org/svn/trunk/src/build@263896 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
9d5e527e1d
Коммит
7da79251ef
|
@ -32,9 +32,9 @@ import sys
|
|||
|
||||
|
||||
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
URL_PREFIX = 'https://commondatastorage.googleapis.com'
|
||||
URL_PREFIX = 'https://storage.googleapis.com'
|
||||
URL_PATH = 'nativeclient-archive2/toolchain'
|
||||
REVISION = 12356
|
||||
REVISION = 13035
|
||||
TARBALL = 'sysroot-arm-trusted.tgz'
|
||||
|
||||
def main(args):
|
||||
|
@ -64,7 +64,12 @@ def main(args):
|
|||
shutil.rmtree(sysroot)
|
||||
os.mkdir(sysroot)
|
||||
tarball = os.path.join(sysroot, TARBALL)
|
||||
subprocess.check_call(['curl', '-L', url, '-o', tarball])
|
||||
curl = ['curl', '--fail', '-L', url, '-o', tarball]
|
||||
if os.isatty(sys.stdout.fileno()):
|
||||
curl.append('--progress')
|
||||
else:
|
||||
curl.append('--silent')
|
||||
subprocess.check_call(curl)
|
||||
subprocess.check_call(['tar', 'xf', tarball, '-C', sysroot])
|
||||
os.remove(tarball)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче