mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[infra] Make gclient sync quiet when nothing is updated.
The 7zip dependency is only used on Windows. Use gclient's OS-specific hook feature to only download it while on Windows. This avoids the download from google cloud storage from needlessly saying it is doing nothing. There's no reason to point out the sysroot is already up to date as this makes gclient output several lines of text with zero information. Change-Id: Id1c212c8a951612c413e9834867fe90f6dca6a20 Reviewed-on: https://dart-review.googlesource.com/c/94752 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
parent
9a0a3fd8c1
commit
b60b664b16
35
DEPS
35
DEPS
|
@ -436,21 +436,6 @@ hooks = [
|
||||||
Var('dart_root') + "/third_party/firefox_jsshell",
|
Var('dart_root') + "/third_party/firefox_jsshell",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "7zip",
|
|
||||||
"pattern": ".",
|
|
||||||
"action": [
|
|
||||||
"download_from_google_storage",
|
|
||||||
"--no_auth",
|
|
||||||
"--no_resume",
|
|
||||||
"--bucket",
|
|
||||||
"dart-dependencies",
|
|
||||||
"--platform=win32",
|
|
||||||
"--extract",
|
|
||||||
"-s",
|
|
||||||
Var('dart_root') + "/third_party/7zip.tar.gz.sha1",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "front_end_benchmark_data",
|
"name": "front_end_benchmark_data",
|
||||||
"pattern": ".",
|
"pattern": ".",
|
||||||
|
@ -511,3 +496,23 @@ hooks = [
|
||||||
'action': ['python', 'sdk/build/vs_toolchain.py', 'update'],
|
'action': ['python', 'sdk/build/vs_toolchain.py', 'update'],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
hooks_os = {
|
||||||
|
"win": [
|
||||||
|
{
|
||||||
|
"name": "7zip",
|
||||||
|
"pattern": ".",
|
||||||
|
"action": [
|
||||||
|
"download_from_google_storage",
|
||||||
|
"--no_auth",
|
||||||
|
"--no_resume",
|
||||||
|
"--bucket",
|
||||||
|
"dart-dependencies",
|
||||||
|
"--platform=win32",
|
||||||
|
"--extract",
|
||||||
|
"-s",
|
||||||
|
Var('dart_root') + "/third_party/7zip.tar.gz.sha1",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
|
@ -131,8 +131,6 @@ def InstallSysroot(target_platform, target_arch):
|
||||||
if os.path.exists(stamp):
|
if os.path.exists(stamp):
|
||||||
with open(stamp) as s:
|
with open(stamp) as s:
|
||||||
if s.read() == url:
|
if s.read() == url:
|
||||||
print '%s %s sysroot image already up to date: %s' % \
|
|
||||||
(target_platform, target_arch, sysroot)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
print 'Installing Debian %s %s root image: %s' % \
|
print 'Installing Debian %s %s root image: %s' % \
|
||||||
|
|
Loading…
Reference in a new issue