| # Copyright 2015 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. |
| packages = sorted(os.listdir(directory)) |
| package_dir = os.path.join(directory, package) |
| if os.path.isdir(package_dir): |
| print 'Updating', package, '...' |
| subprocess.check_call(['pub', 'get'], cwd=package_dir) |
| FLUTTER_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| update(os.path.join(FLUTTER_ROOT, 'packages')) |
| update(os.path.join(FLUTTER_ROOT, 'examples')) |