blob: 2fe36bc3c44a3c5fd15e4faadbca478612e1baae [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
rtc@google.com21a5ca32009-11-04 18:23:23 +00005import os
6
rtc@google.comded22402009-10-26 22:36:21 +00007def GetPackages():
8 """
9 Lists all of the packages that can be built with a make_pkg.sh script.
10 """
11 pkgs = []
12 cli = os.popen("find %s -name make_pkg.sh" % root_dir).read().split('\n')
13 for pkg in cli:
14 if pkg == "":
15 continue
16 pkg_name = pkg.split('/')[-2]
17 web.debug(pkg_name)
18 li.append(pkg_name)
19