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

Unified Diff: tools/get_archive.py

Issue 11567059: "Fix" up library names in dromaeo tests so dart2js doesn't complain. Also fix up get_archive.py for… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/get_archive.py
===================================================================
--- tools/get_archive.py (revision 16180)
+++ tools/get_archive.py (working copy)
@@ -200,12 +200,15 @@
def FindPermanentUrl(out, osname, not_used):
rev_num = revision_num
if not rev_num:
- temp_file = tempfile.NamedTemporaryFile()
+ temp_file = tempfile.NamedTemporaryFile(delete=False)
+ temp_file.close()
temp_file_url = 'file://' + temp_file.name
Gsutil('cp', latest_pattern % {'osname' : osname }, temp_file_url)
+ temp_file = open(temp_file.name)
temp_file.seek(0)
version_info = temp_file.read()
temp_file.close()
+ os.unlink(temp_file.name)
if version_info != '':
rev_num = json.loads(version_info)['revision']
else:
« no previous file with comments | « samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698