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

Unified Diff: cros_workon

Issue 2966016: cros_workon: fix forall (broken by --host) :/ (Closed) Base URL: ssh://gitrw.chromium.org/crosutils
Patch Set: Created 10 years, 5 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: cros_workon
diff --git a/cros_workon b/cros_workon
index 33eb594c80c2d223cf8aa08173dc37aa578c36ef..fc9d6d15cf19087faac887d69c72b907d8846ad0 100755
--- a/cros_workon
+++ b/cros_workon
@@ -50,10 +50,12 @@ shift
if [ -n "${FLAGS_board}" ]; then
BOARD_DIR=/build/"${FLAGS_board}" # --board specified
- EQUERY=equery-"${FLAGS_board}"
+ EQUERYCMD=equery-"${FLAGS_board}"
+ EBUILDCMD=ebuild-"${FLAGS_board}"
else
BOARD_DIR="" # --host specified
- EQUERY=equery
+ EQUERYCMD=equery
+ EBUILDCMD=ebuild
fi
KEYWORDS_DIR=${BOARD_DIR}/etc/portage/package.keywords
@@ -71,7 +73,7 @@ canonicalize_name () {
local pkgfile
local pkgname
- if ! pkgfile=$(${EQUERY} which $1); then
+ if ! pkgfile=$(${EQUERYCMD} which $1); then
warn "error looking up package $1" 1>&2
return 1
fi
@@ -147,7 +149,7 @@ ebuild_forall() {
for atom in ${atoms}; do
info "Running \"${FLAGS_command}\" on ${atom}"
- eval $(ebuild-${FLAGS_board} $(${EQUERY} which ${atom}) info)
+ eval $(${EBUILDCMD} $(${EQUERYCMD} which ${atom}) info)
(cd "${CROS_WORKON_SRCDIR}" && bash -c "${FLAGS_command}")
done
}
« 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