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

Unified Diff: cros_workon

Issue 6379006: cros_workon: allow a stop on a dead package (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 11 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 f12bc7a9e44a3a474b036108a2e9b65a40dfee71..61b1e4742005afd381d3bb22b60dd61a60d4a020 100755
--- a/cros_workon
+++ b/cros_workon
@@ -103,6 +103,11 @@ canonicalize_name () {
local pkgfile
local pkgname
+ if grep -qx "=$1-9999" "${WORKON_FILE}" ; then
+ echo $1
+ return 0
+ fi
+
if ! pkgfile=$(ACCEPT_KEYWORDS="~${BOARD_KEYWORD}" ${EQUERYCMD} which $1); then
warn "error looking up package $1" 1>&2
return 1
« 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