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

Side by Side Diff: client/common_lib/cros/autoupdater.py

Issue 5626007: move chromiumos_update into client/common_lib/cros (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/common_lib/cros/__init__.py ('k') | client/common_lib/cros/common.py » ('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) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 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 import httplib 5 import httplib
6 import logging 6 import logging
7 import re 7 import re
8 import socket 8 import socket
9 import urlparse 9 import urlparse
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if not version_match: 156 if not version_match:
157 raise ChromiumOSError('Unable to get build ID from %s. Found "%s"', 157 raise ChromiumOSError('Unable to get build ID from %s. Found "%s"',
158 self.host.hostname, version) 158 self.host.hostname, version)
159 version, build_id, builder = version_match.groups() 159 version, build_id, builder = version_match.groups()
160 build_match = re.match(r'.*: (\d+)', builder) 160 build_match = re.match(r'.*: (\d+)', builder)
161 if build_match: 161 if build_match:
162 builder_num = '-b%s' % build_match.group(1) 162 builder_num = '-b%s' % build_match.group(1)
163 else: 163 else:
164 builder_num = '' 164 builder_num = ''
165 return '%s-r%s%s' % (version, build_id, builder_num) 165 return '%s-r%s%s' % (version, build_id, builder_num)
OLDNEW
« no previous file with comments | « client/common_lib/cros/__init__.py ('k') | client/common_lib/cros/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698