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

Unified Diff: download_golang.py

Issue 872423002: Adding support for AppRTC closure compiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webrtc/webrtc.DEPS/
Patch Set: Created 5 years, 11 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 | « copy_apprtc.py ('k') | download_node.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_golang.py
===================================================================
--- download_golang.py (revision 293799)
+++ download_golang.py (working copy)
@@ -19,18 +19,6 @@
import utils
-def _DownloadFilesFromGoogleStorage(webrtc_deps_path):
- print 'Downloading files in %s...' % webrtc_deps_path
-
- extension = 'bat' if 'win32' in sys.platform else 'py'
- cmd = ['download_from_google_storage.%s' % extension,
- '--bucket=chromium-webrtc-resources',
- '--auto_platform',
- '--recursive',
- '--directory', webrtc_deps_path]
- subprocess.check_call(cmd)
-
-
def _GetGoArchivePathForPlatform():
archive_extension = 'zip' if utils.GetPlatform() == 'win' else 'tar.gz'
return os.path.join(utils.GetPlatform(), 'go.%s' % archive_extension)
@@ -47,9 +35,10 @@
archive_path = os.path.join(golang_path, _GetGoArchivePathForPlatform())
old_archive_sha1 = utils.ComputeSHA1(archive_path)
- _DownloadFilesFromGoogleStorage(golang_path)
+ utils.DownloadFilesFromGoogleStorage(golang_path)
- if old_archive_sha1 != utils.ComputeSHA1(archive_path):
+ if (old_archive_sha1 != utils.ComputeSHA1(archive_path)
+ or not os.path.exists('go')):
utils.DeleteDirNextToGclient('go')
utils.UnpackToWorkingDir(archive_path)
« no previous file with comments | « copy_apprtc.py ('k') | download_node.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698