Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
Bug 1367997 - Autophone - Return None for build_data if platform does…
Browse files Browse the repository at this point in the history
… not match, r=jmaher.
  • Loading branch information
bclary committed May 26, 2017
1 parent 3d8829c commit 1537e09
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions utils.py
Expand Up @@ -158,13 +158,17 @@ def get_build_data_from_taskcluster_task_definition(task_definition):
formatstr, build_date = build_dates.parse_datetime(pushdate, tz=build_dates.UTC)

match = re_platform.match(platform)
if match:
(api, extra) = match.groups()
if api == 'x86':
api = 'api-15'
abi = 'x86'
else:
abi = 'arm'
if not match:
logger.debug('get_build_data_from_taskcluster_task_definitions: '
'failed to match platform %s', platform)
return None

(api, extra) = match.groups()
if api == 'x86':
api = 'api-15'
abi = 'x86'
else:
abi = 'arm'

changeset = builds.REPO_URLS[repo] + 'rev/' + revision

Expand Down

0 comments on commit 1537e09

Please sign in to comment.