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 19 matching lines...) Expand all Loading... |
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 = 49 | 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 'le32': 'le32' |
40 } | 41 } |
41 | 42 |
42 # Inverse of arch_to_pkgarch | 43 # Inverse of arch_to_pkgarch |
43 pkgarch_to_arch = {v: k for k, v in arch_to_pkgarch.items()} | 44 pkgarch_to_arch = {v: k for k, v in arch_to_pkgarch.items()} |
44 | 45 |
45 LOG_ERROR = 0 | 46 LOG_ERROR = 0 |
46 LOG_WARN = 1 | 47 LOG_WARN = 1 |
47 LOG_INFO = 2 | 48 LOG_INFO = 2 |
48 LOG_VERBOSE = 3 | 49 LOG_VERBOSE = 3 |
49 LOG_TRACE = 4 | 50 LOG_TRACE = 4 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 | 482 |
482 class InstallLock(DirLock): | 483 class InstallLock(DirLock): |
483 """Lock used when installing/uninstalling package""" | 484 """Lock used when installing/uninstalling package""" |
484 | 485 |
485 def __init__(self, config): | 486 def __init__(self, config): |
486 root = get_install_root(config) | 487 root = get_install_root(config) |
487 super(InstallLock, self).__init__(root) | 488 super(InstallLock, self).__init__(root) |
488 | 489 |
489 | 490 |
490 check_stdout_for_color_support() | 491 check_stdout_for_color_support() |
OLD | NEW |