Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: sky/sdk/lib/download_material_design_icons

Issue 1226833009: Make `download_material_design_icons` work in a clean checkout. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/download_material_design_icons
diff --git a/sky/sdk/lib/download_material_design_icons b/sky/sdk/lib/download_material_design_icons
index 02ecfba3be57f6a2e7a0c3db036797019959bf1e..f0d987e646b6a752d019e7405e9c118c7b7aa1a2 100755
--- a/sky/sdk/lib/download_material_design_icons
+++ b/sky/sdk/lib/download_material_design_icons
@@ -9,6 +9,7 @@ import subprocess
import sys
import urllib2
+
def main():
sky_lib_dir = os.path.dirname(os.path.abspath(__file__))
assets_dir = os.path.join(sky_lib_dir, 'assets')
@@ -37,7 +38,7 @@ def main():
with open(tgz_path, 'wb') as f:
f.write(response.read())
- shutil.rmtree(icons_dir)
+ shutil.rmtree(icons_dir, ignore_errors=True)
output_path = os.path.join(assets_dir, tgz_path)
subprocess.call([
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698