rtc@google.com | ded2240 | 2009-10-26 22:36:21 +0000 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | def GetPackages(): |
| 6 | """ |
| 7 | Lists all of the packages that can be built with a make_pkg.sh script. |
| 8 | """ |
| 9 | pkgs = [] |
| 10 | cli = os.popen("find %s -name make_pkg.sh" % root_dir).read().split('\n') |
| 11 | for pkg in cli: |
| 12 | if pkg == "": |
| 13 | continue |
| 14 | pkg_name = pkg.split('/')[-2] |
| 15 | web.debug(pkg_name) |
| 16 | li.append(pkg_name) |
| 17 | |