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

Unified Diff: build_tools/sdk_tools/sdk_update.py

Issue 8566045: Updated update_manifest.py to push manifest files to server (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: merge Created 9 years, 1 month 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 | « build_tools/build.scons ('k') | build_tools/sdk_tools/update_manifest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_tools/sdk_tools/sdk_update.py
diff --git a/build_tools/sdk_tools/sdk_update.py b/build_tools/sdk_tools/sdk_update.py
index d5c6f2524c1ceb8b31c4868a82849f78ef4d9c22..84095aeed46463477f67ed4549849a4afdff21e3 100755
--- a/build_tools/sdk_tools/sdk_update.py
+++ b/build_tools/sdk_tools/sdk_update.py
@@ -27,7 +27,7 @@ import urlparse
# Bump the MINOR_REV every time you check this file in.
MAJOR_REV = 1
-MINOR_REV = 12
+MINOR_REV = 13
GLOBAL_HELP = '''Usage: naclsdk [options] command [command_options]
@@ -476,6 +476,18 @@ class Archive(dict):
self['size'] = size
self['checksum'] = {'sha1': sha1}
+ def GetUrl(self):
+ '''Returns the URL of this Archive'''
+ return self['url']
+
+ def GetSize(self):
+ '''Returns the size of this archive, in bytes'''
+ return int(self['size'])
+
+ def GetChecksum(self, type='sha1'):
+ '''Returns a given cryptographic checksum of the archive'''
+ return self['checksum'][type]
+
class Bundle(dict):
''' A placeholder for sdk bundle information. We derive Bundle from
@@ -582,6 +594,10 @@ class Bundle(dict):
self[ARCHIVES_KEY].append(archive)
archive.Update(url)
+ def GetArchives(self):
+ '''Returns all the archives in this bundle'''
+ return self[ARCHIVES_KEY]
+
class SDKManifest(object):
'''This class contains utilities for manipulation an SDK manifest string
« no previous file with comments | « build_tools/build.scons ('k') | build_tools/sdk_tools/update_manifest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698