| OLD | NEW |
| 1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import fcntl | 5 import fcntl |
| 6 import hashlib | 6 import hashlib |
| 7 import os | 7 import os |
| 8 import shutil | 8 import shutil |
| 9 import subprocess | 9 import subprocess |
| 10 import sys | 10 import sys |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 from webports import error, paths | 22 from webports import error, paths |
| 23 | 23 |
| 24 GS_URL = 'http://storage.googleapis.com/' | 24 GS_URL = 'http://storage.googleapis.com/' |
| 25 GS_BUCKET = 'webports' | 25 GS_BUCKET = 'webports' |
| 26 GS_MIRROR_URL = '%s%s/mirror' % (GS_URL, GS_BUCKET) | 26 GS_MIRROR_URL = '%s%s/mirror' % (GS_URL, GS_BUCKET) |
| 27 | 27 |
| 28 # Require the latest version of the NaCl SDK. webports is built | 28 # Require the latest version of the NaCl SDK. webports is built |
| 29 # and tested against the pepper_canary release. To build aginst older | 29 # and tested against the pepper_canary release. To build aginst older |
| 30 # versions of the SDK use the one of the pepper_XX branches (or use | 30 # versions of the SDK use the one of the pepper_XX branches (or use |
| 31 # --skip-sdk-version-check). | 31 # --skip-sdk-version-check). |
| 32 MIN_SDK_VERSION = 46 | 32 MIN_SDK_VERSION = 49 |
| 33 | 33 |
| 34 arch_to_pkgarch = { | 34 arch_to_pkgarch = { |
| 35 'x86_64': 'x86-64', | 35 'x86_64': 'x86-64', |
| 36 'i686': 'i686', | 36 'i686': 'i686', |
| 37 'arm': 'arm', | 37 'arm': 'arm', |
| 38 'pnacl': 'pnacl', | 38 'pnacl': 'pnacl', |
| 39 'emscripten': 'emscripten', | 39 'emscripten': 'emscripten', |
| 40 } | 40 } |
| 41 | 41 |
| 42 # Inverse of arch_to_pkgarch | 42 # Inverse of arch_to_pkgarch |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 class InstallLock(DirLock): | 481 class InstallLock(DirLock): |
| 482 """Lock used when installing/uninstalling package""" | 482 """Lock used when installing/uninstalling package""" |
| 483 | 483 |
| 484 def __init__(self, config): | 484 def __init__(self, config): |
| 485 root = GetInstallRoot(config) | 485 root = GetInstallRoot(config) |
| 486 super(InstallLock, self).__init__(root) | 486 super(InstallLock, self).__init__(root) |
| 487 | 487 |
| 488 | 488 |
| 489 CheckStdoutForColorSupport() | 489 CheckStdoutForColorSupport() |
| OLD | NEW |