Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: src/scripts/get_package_list

Issue 1784010: Adds a helper script to print out all package dependencies of a given package. (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: Add -v Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Lists all package dependencies of a particular package. Useful to find out
8 # all packages depended on by chromeos and chromeos-dev.
9
10 . "$(dirname "$0")/common.sh"
11
12 # Script must be run inside the chroot.
13 assert_inside_chroot
14
15 get_default_board
16
17 # Flags.
18 DEFINE_string board "$DEFAULT_BOARD" \
19 "The board for which the image was built." b
20
21 # Parse flags.
22 FLAGS "$@" || exit 1
23
24 if [[ -z "${FLAGS_ARGV}" ]]; then
25 echo "Please specify package."
26 echo "Usage: ./get_package_list.sh chromeos-base/chromeos > package.list"
27 exit 1
28 fi
29
30 emerge-$FLAGS_board --emptytree --usepkgonly -p -v --columns \
31 $1 2> /dev/null | cut -d ' ' -f 8 | grep '/'
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698