blob: 0ffb75f87581c768c8e4d4e9678de88cbafb14b4 [file] [log] [blame]
rtc@google.comded22402009-10-26 22:36:21 +00001# 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
5def 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