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

Issue 3400001: cros_workon: redefine the concept of a "workon" package list to depend on the board (Closed)

Created:
10 years, 3 months ago by zbehan
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, anush, sosa, Mandeep Singh Baines
Visibility:
Public.

Description

cros_workon: redefine the concept of a "workon" package list to depend on the board * Modified all workon listing functions to also look for keyword * Added a fallback to list all workon ebuilds if keyword is not specified, which is needed for cros_mark_all_as_stable, which does not differentiate between boards. This, amongst other potential issues, resolves the case when it was possible to start working on a package not keyworded for the given board, and making build_packages fail unconditionally. TEST=below $ ./cros_workon list --all --board=x86-generic |wc -l 73 $ ./cros_workon list --all --host |wc -l 57 Looking at the lists rather than "|wc -l" looks correct $ ./cros_mark_all_as_stable ^ Produces satisfactory result BUG=6700 Change-Id: Ieee92a39febcef5fb95e59cf97b6e63281a7c750

Patch Set 1 #

Total comments: 6

Patch Set 2 : msb comments #

Total comments: 1

Patch Set 3 : More issues fixed #

Total comments: 1

Patch Set 4 : Simplified things as much as possible, finally made them work #

Patch Set 5 : Ahem, i meant now. #

Total comments: 1

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -16 lines) Patch
M cros_workon View 1 4 chunks +5 lines, -3 lines 0 comments Download
M lib/cros_workon_common.sh View 1 2 3 4 5 2 chunks +12 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
zbehan
10 years, 3 months ago (2010-09-14 00:50:33 UTC) #1
Mandeep Singh Baines
http://codereview.chromium.org/3400001/diff/1/2 File cros_workon (right): http://codereview.chromium.org/3400001/diff/1/2#newcode70 cros_workon:70: BOARD_KEYWORD="amd64" # FIXME: Bleh, hardcoded, but how to do ...
10 years, 3 months ago (2010-09-14 16:53:00 UTC) #2
zbehan
On Tue, Sep 14, 2010 at 9:53 AM, <msb@chromium.org> wrote: > > http://codereview.chromium.org/3400001/diff/1/2 > File ...
10 years, 3 months ago (2010-09-14 18:05:45 UTC) #3
zbehan
10 years, 3 months ago (2010-09-14 18:06:01 UTC) #4
Mandeep Singh Baines
http://codereview.chromium.org/3400001/diff/7001/8002 File lib/cros_workon_common.sh (right): http://codereview.chromium.org/3400001/diff/7001/8002#newcode27 lib/cros_workon_common.sh:27: keyword=$1 How about remove the caching and implement as: ...
10 years, 3 months ago (2010-09-14 18:51:52 UTC) #5
Mandeep Singh Baines
Zdenek Behan (zbehan@chromium.org) wrote: > On Tue, Sep 14, 2010 at 9:53 AM, <msb@chromium.org> wrote: ...
10 years, 3 months ago (2010-09-14 19:00:58 UTC) #6
zbehan
On Tue, Sep 14, 2010 at 11:54 AM, Mandeep Singh Baines <msb@chromium.org>wrote: > Zdenek Behan ...
10 years, 3 months ago (2010-09-14 20:02:00 UTC) #7
zbehan
10 years, 3 months ago (2010-09-14 20:07:23 UTC) #8
Mandeep Singh Baines
On 2010/09/14 20:02:00, zbehan wrote: > On Tue, Sep 14, 2010 at 11:54 AM, Mandeep ...
10 years, 3 months ago (2010-09-14 20:08:58 UTC) #9
zbehan
Does that mean lgtm? :) On Tue, Sep 14, 2010 at 1:08 PM, <msb@chromium.org> wrote: ...
10 years, 3 months ago (2010-09-14 20:51:40 UTC) #10
Mandeep Singh Baines
http://codereview.chromium.org/3400001/diff/13001/14002 File lib/cros_workon_common.sh (right): http://codereview.chromium.org/3400001/diff/13001/14002#newcode43 lib/cros_workon_common.sh:43: echo $(show_workon_ebuilds_files $1) | \ Why the echo?
10 years, 3 months ago (2010-09-14 20:52:15 UTC) #11
zbehan
On Tue, Sep 14, 2010 at 1:52 PM, <msb@chromium.org> wrote: > > http://codereview.chromium.org/3400001/diff/13001/14002 > > ...
10 years, 3 months ago (2010-09-14 20:59:49 UTC) #12
zbehan
Well, meh. It seems that it stopped working mysteriously. The caching function is destroying the ...
10 years, 3 months ago (2010-09-14 22:29:19 UTC) #13
zbehan
10 years, 3 months ago (2010-09-14 22:56:55 UTC) #14
zbehan
10 years, 3 months ago (2010-09-14 22:58:48 UTC) #15
Mandeep Singh Baines
http://codereview.chromium.org/3400001/diff/5003/23002 File lib/cros_workon_common.sh (right): http://codereview.chromium.org/3400001/diff/5003/23002#newcode32 lib/cros_workon_common.sh:32: keyword="ALL" With the new cleanup, you should be able ...
10 years, 3 months ago (2010-09-14 23:05:24 UTC) #16
zbehan
Or better yet, because the regexp "KEYWORDS=".*${keyword}.*" works even if $keyword is empty, which is ...
10 years, 3 months ago (2010-09-14 23:54:01 UTC) #17
zbehan
10 years, 3 months ago (2010-09-14 23:57:46 UTC) #18
Mandeep Singh Baines
10 years, 3 months ago (2010-09-15 18:14:25 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld 408576698