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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/get_package_list
diff --git a/src/scripts/get_package_list b/src/scripts/get_package_list
new file mode 100755
index 0000000000000000000000000000000000000000..0deb1f0a6a7e92b3b6edd1fd7e55cb19d3da7939
--- /dev/null
+++ b/src/scripts/get_package_list
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Lists all package dependencies of a particular package. Useful to find out
+# all packages depended on by chromeos and chromeos-dev.
+
+. "$(dirname "$0")/common.sh"
+
+# Script must be run inside the chroot.
+assert_inside_chroot
+
+get_default_board
+
+# Flags.
+DEFINE_string board "$DEFAULT_BOARD" \
+ "The board for which the image was built." b
+
+# Parse flags.
+FLAGS "$@" || exit 1
+
+if [[ -z "${FLAGS_ARGV}" ]]; then
+ echo "Please specify package."
+ echo "Usage: ./get_package_list.sh chromeos-base/chromeos > package.list"
+ exit 1
+fi
+
+emerge-$FLAGS_board --emptytree --usepkgonly -p -v --columns \
+ $1 2> /dev/null | cut -d ' ' -f 8 | grep '/'
« 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