Filter out Assessment and Deployment Kit

When packaging the VC++ and Windows SDK toolchain it is important to
filter out unneeded directories both to avoid unnecessary size and to
avoid including excessively long paths. The Assessment and Deployment
Kit was installed on my test machine, is 3.5 GB, and has some very
long file paths, so now I filter it out.

Bug: 1120785
Change-Id: I9e0c16cea57cf4a687db1e4c315440fd5a50c9f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2370864
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
changes/64/2370864/2
Bruce Dawson 5 years ago committed by LUCI CQ
parent 149a3b7581
commit f0e672e732

@ -182,11 +182,12 @@ def BuildFileList(override_dir, include_arm):
combined = os.path.normpath(os.path.join(root, f))
# Some of the files in this directory are exceedingly long (and exceed
# _MAX_PATH for any moderately long root), so exclude them. We don't need
# them anyway. Exclude others just to save space.
# them anyway. Exclude/filter/skip others just to save space.
tail = combined[len(sdk_path) + 1:]
skip_dir = False
for dir in ['References\\', 'Windows Performance Toolkit\\', 'Testing\\',
'App Certification Kit\\', 'Extension SDKs\\']:
'App Certification Kit\\', 'Extension SDKs\\',
'Assessment and Deployment Kit\\']:
if tail.startswith(dir):
skip_dir = True
if skip_dir:

Loading…
Cancel
Save