Commit Graph

113 Commits

Author SHA1 Message Date
David James
21d93ccac3 Revert "cros-workon: change forall into iterate"
This breaks cros-workon list, which is used by build_packages.

This reverts commit dc3359ba7c.

Review URL: http://codereview.chromium.org/3008005
2010-07-15 20:37:23 -07:00
Zdenek Behan
dc3359ba7c cros-workon: change forall into iterate
* Bend iterate to accept either list of packages or --all, following the new
semantics

This is a re-upload of the original CL which seems to be broken beyond repair
by the git malfunctions yesterday

Review URL: http://codereview.chromium.org/3040001
2010-07-15 16:13:00 -07:00
Zdenek Behan
d27f9039b5 cros_workon: fix forall (broken by --host) :/
Review URL: http://codereview.chromium.org/2966016
2010-07-15 15:41:52 -07:00
Zdenek Behan
9f52b31150 cros_workon: introduce --all flag
* Replaced listall with list --all
* stop/start without arguments will now fail
* stop/start with --all will do just the expected thing
* Rewritten package list decision logic

TBR: msb - already got LGTM, then fixed a comment i noticed

Review URL: http://codereview.chromium.org/2963011
2010-07-14 15:47:09 -07:00
Zdenek Behan
8683b8082f cros_workon: introduce a very simple listall command
TBR: sosa, msb - I already got the LGTM, then made a silly whitespace change!

Review URL: http://codereview.chromium.org/2909009
2010-07-13 16:48:12 -07:00
Zdenek Behan
2089bed7b8 cros_workon: check selected packages if they are cros-workon, related fixes
Override locally warn/error functions to not interfere with stdout of canonicalize_name.
Future FIXME in common.sh.

Review URL: http://codereview.chromium.org/2985003
2010-07-13 15:08:07 -07:00
Zdenek Behan
aefb186237 cros_workon: corner case fixes
* Warn if user stops working on a package he wasn't working on
* Warn if user starts to work on a package he already is working on

Review URL: http://codereview.chromium.org/2978002
2010-07-13 13:31:44 -07:00
Zdenek Behan
a5959f5c14 cros_workon: allow unmasking packages for the host
modified:   cros_workon

Review URL: http://codereview.chromium.org/2945010
2010-07-12 15:40:49 -07:00
Zdenek Behan
9a8f3998f0 cros_workon: also create unmask
* This fixes the issue, where cros-workon packages have a package.mask set
to prevent upstream ebuilds from rolling in. In general, it brings out the
cavalry for unmasking the live package in every possible way.

Review URL: http://codereview.chromium.org/2934007
2010-07-09 18:08:46 -07:00
Mandeep Singh Baines
a0fcf30e54 cros_workon: quick hack at package name checking
Change-Id: I30e97760d5b96077e38414be31ef434542021361

Review URL: http://codereview.chromium.org/2883012
2010-07-01 14:05:19 -07:00
Mandeep Singh Baines
952996c605 cros_workon: add support for a forall command
Change-Id: If0c75ee905c4a8076340fa9675c17e9292125268

Review URL: http://codereview.chromium.org/2880007
2010-06-30 18:51:48 -07:00
Mandeep Singh Baines
451cee1349 cros_workon: modify to be less verbose
We need to be able to use "cros_workon list" in pipelines. Also, would
be nice if the other commands were less verbose. Ideally, they should
die and return a non-zero value.

Also cleaned up the logic in some of the functions. This fixed a couple
of bugs:

1) "cros-workon list" would fail if KEYWORDS_FILE didn't exist
2) "cros-workon start" would fail if KEYWORDS_DIR didn't exit

Change-Id: I76c87f0e36b72c12e8ae937cbadca6cf21a34bad

Review URL: http://codereview.chromium.org/2880005
2010-06-30 09:21:55 -07:00
Brian Daugherty
76418ea6b1 cros_workon: initial implementation
Moves ebuild(s) between stable and live states.

Lists ebuilds currently under development in the testing branch.

Stable ebuilds obtain and build against the last known good commit.
Live ebuilds (9999) perform a 'git clone' during the src_unpack
step to obtain and save the source for development and building.

Example usage:

  Sync & build 'ibus-hangul' testing ebuild (9999)
     ./cros_workon start app-i18n/ibus-hangul

  Build 'ibus-hangul' from the last stable commit
     ./cros_workon stop app-i18n/ibus-hangul

  List of ebuilds under development
     ./cros_workon list

Change-Id: I2ea4babd7597d5cea9ca96419a74152f9f0b23f1

Note: --board must be specified if the --default option
      to setup_board was not used.

Review URL: http://codereview.chromium.org/2852019
2010-06-23 14:43:28 -06:00