Don't unique projects in cros_workon --info.

There may be multiple ebuilds associated with the same project.
We therefore should not use -u in the sort command here and
eliminate needed ebuilds from the list.

BUG=none
TEST=cros_workon --all --board=x86-generic | grep autotest
     (Previously it returned 1 ebuild; now it returns them all.)

Change-Id: I2e33090e2ba06e7cfde908a7e142267fbd74198b
Reviewed-on: https://gerrit.chromium.org/gerrit/19409
Commit-Ready: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
This commit is contained in:
David James 2012-03-30 17:34:39 -07:00
parent bb18db9908
commit 6ba0ec8b5b

View File

@ -150,7 +150,7 @@ show_workon_ebuilds() {
show_workon_info() { show_workon_info() {
local atoms="$1" local atoms="$1"
local keyword="$2" local keyword="$2"
local sort="sort -u -k1b,1" local sort="sort -k1b,1"
# Column 1: Package name # Column 1: Package name
# Column 2: Repo name # Column 2: Repo name
# Column 3: Source directory (if present locally) # Column 3: Source directory (if present locally)