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

Side by Side Diff: src/platform/dev/autoupdate.py

Issue 2132008: Update factory installer, factory test (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: integrate autupdate server changes Created 10 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/platform/factory_installer/factory_install.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from buildutil import BuildObject 5 from buildutil import BuildObject
6 from xml.dom import minidom 6 from xml.dom import minidom
7 7
8 import os 8 import os
9 import shutil 9 import shutil
10 import sys 10 import sys
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 be in this format: 186 be in this format:
187 config = [ 187 config = [
188 { 188 {
189 'qual_ids': set([1, 2, 3, "x86-generic"]), 189 'qual_ids': set([1, 2, 3, "x86-generic"]),
190 'factory_image': 'generic-factory.gz', 190 'factory_image': 'generic-factory.gz',
191 'factory_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 191 'factory_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
192 'release_image': 'generic-release.gz', 192 'release_image': 'generic-release.gz',
193 'release_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 193 'release_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
194 'oempartitionimg_image': 'generic-oem.gz', 194 'oempartitionimg_image': 'generic-oem.gz',
195 'oempartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 195 'oempartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
196 'efipartitionimg_image': 'generic-efi.gz',
197 'efipartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
196 'stateimg_image': 'generic-state.gz', 198 'stateimg_image': 'generic-state.gz',
197 'stateimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 199 'stateimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
198 'systemrom_image': 'generic-systemrom.gz', 200 'systemrom_image': 'generic-systemrom.gz',
199 'systemrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 201 'systemrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
200 'ecrom_image': 'generic-ecrom.gz', 202 'ecrom_image': 'generic-ecrom.gz',
201 'ecrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 203 'ecrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
202 }, 204 },
203 { 205 {
204 'qual_ids': set([6]), 206 'qual_ids': set([6]),
205 'factory_image': '6-factory.gz', 207 'factory_image': '6-factory.gz',
206 'factory_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 208 'factory_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
207 'release_image': '6-release.gz', 209 'release_image': '6-release.gz',
208 'release_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 210 'release_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
209 'oempartitionimg_image': '6-oem.gz', 211 'oempartitionimg_image': '6-oem.gz',
210 'oempartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 212 'oempartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
213 'efipartitionimg_image': '6-efi.gz',
214 'efipartitionimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
211 'stateimg_image': '6-state.gz', 215 'stateimg_image': '6-state.gz',
212 'stateimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 216 'stateimg_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
213 'systemrom_image': '6-systemrom.gz', 217 'systemrom_image': '6-systemrom.gz',
214 'systemrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 218 'systemrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
215 'ecrom_image': '6-ecrom.gz', 219 'ecrom_image': '6-ecrom.gz',
216 'ecrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=', 220 'ecrom_checksum': 'AtiI8B64agHVN+yeBAyiNMX3+HM=',
217 }, 221 },
218 ] 222 ]
219 The server will look for the files by name in the static files 223 The server will look for the files by name in the static files
220 directory. 224 directory.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 ok = self.BuildUpdateImage(latest_image_path) 326 ok = self.BuildUpdateImage(latest_image_path)
323 if ok != True: 327 if ok != True:
324 web.debug('Failed to build an update image') 328 web.debug('Failed to build an update image')
325 return self.GetNoUpdatePayload() 329 return self.GetNoUpdatePayload()
326 330
327 hash = self.GetHash('%s/update.gz' % self.static_dir) 331 hash = self.GetHash('%s/update.gz' % self.static_dir)
328 size = self.GetSize('%s/update.gz' % self.static_dir) 332 size = self.GetSize('%s/update.gz' % self.static_dir)
329 333
330 url = 'http://%s/static/update.gz' % hostname 334 url = 'http://%s/static/update.gz' % hostname
331 return self.GetUpdatePayload(hash, size, url) 335 return self.GetUpdatePayload(hash, size, url)
OLDNEW
« no previous file with comments | « no previous file | src/platform/factory_installer/factory_install.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698