2015-01-09 23:06:56 +03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2015-02-02 16:53:06 +03:00
|
|
|
SDK_EXTRAS_JSON_FILE = os.path.join(os.path.dirname(__file__),
|
2015-01-09 23:06:56 +03:00
|
|
|
'android_sdk_extras.json')
|
|
|
|
|
|
|
|
def main():
|
|
|
|
with open(SDK_EXTRAS_JSON_FILE) as json_file:
|
|
|
|
packages = json.load(json_file)
|
2015-06-26 13:30:05 +03:00
|
|
|
|
|
|
|
out = []
|
2015-01-09 23:06:56 +03:00
|
|
|
for package in packages:
|
2015-06-26 13:30:05 +03:00
|
|
|
out.append(package['package_id'])
|
2015-01-09 23:06:56 +03:00
|
|
|
|
2015-06-26 13:30:05 +03:00
|
|
|
print ','.join(out)
|
2015-01-09 23:06:56 +03:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
sys.exit(main())
|