Trim unused files with long paths from Windows NDK package.
authorMike Klein <mtklein@chromium.org>
Wed, 2 Nov 2016 22:23:01 +0000 (18:23 -0400)
committerMike Klein <mtklein@chromium.org>
Wed, 2 Nov 2016 22:24:42 +0000 (22:24 +0000)
Version 1 uploaded to CIPD but not Google Storage.  So this is 0 -> 2.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4361

Change-Id: I42597c68e309f861021e16d689088869975e4329
Reviewed-on: https://skia-review.googlesource.com/4361
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
infra/bots/assets/android_ndk_windows/VERSION
infra/bots/assets/android_ndk_windows/create.py

index c227083464fb9af8955c90d2924774ee50abb547..d8263ee9860594d2806b0dfd1bfd17528b0ba2a4 100644 (file)
@@ -1 +1 @@
-0
\ No newline at end of file
+2
\ No newline at end of file
index e79b2ed4ecc146afe5665f113ac10c45f0cd78c8..8c28befef72ea63adfd9602913d713d0365ce415 100755 (executable)
@@ -27,6 +27,11 @@ def create_asset(target_dir):
     shutil.move(f, target_dir)
   subprocess.check_call(["rm", "ndk.zip"])
 
+  # Some of these files have paths that exceed 260 characters when downloaded
+  # as a CIPD package.  Luckily they're just tests.  We don't need them.
+  shutil.rmtree(os.path.join(target_dir,
+                             'sources', 'cxx-stl', 'llvm-libc++', 'test'))
+
 
 def main():
   parser = argparse.ArgumentParser()