Index: build/android/devil/devil_env.py |
diff --git a/build/android/devil/devil_env.py b/build/android/devil/devil_env.py |
index 07bb658ced30a444a4af5d0694b7982edc798046..efec60307fd35682f1e2dfb20fbb1521cce30cde 100644 |
--- a/build/android/devil/devil_env.py |
+++ b/build/android/devil/devil_env.py |
@@ -38,11 +38,11 @@ _DEVIL_DEFAULT_CONFIG = os.path.abspath(os.path.join( |
_LEGACY_ENVIRONMENT_VARIABLES = { |
'ADB_PATH': { |
'dependency_name': 'adb', |
- 'platform': 'linux_x86_64', |
+ 'platform': 'linux2_x86_64', |
}, |
'ANDROID_SDK_ROOT': { |
'dependency_name': 'android_sdk', |
- 'platform': 'linux_x86_64', |
+ 'platform': 'linux2_x86_64', |
}, |
} |
@@ -139,7 +139,7 @@ class _Environment(object): |
def GetPlatform(arch=None, device=None): |
if device: |
return 'android_%s' % (arch or device.product_cpu_abi) |
- return 'linux_%s' % platform.machine() |
+ return '%s_%s' % (sys.platform, platform.machine()) |
jbudorick
2016/01/06 14:56:58
This is why. Mac users were seeing this try to dow
|
config = _Environment() |