setup_board: reload cros_workon'd packages

The list of packages worked on persists when the board's sysroot is
recreated (list stored in .config/cros_workon/) but the information is
not passed to portage's db. A dummy call to cros_workon regenerates the
necessary symlinks as per CL:267112 and fixes the discrepancy.

cros_workon start arc-mesa;
setup_board --force;
equery w arc-mesa # now points to -9999 ebuild instead of "stable"
TEST=./setup_board --board=cyan
TEST=./setup_board --board=veyron_minnie

Change-Id: I6dd251557f89198a8bdc9e0c7b57ed658b70c703
Commit-Ready: Nicolas Norvez <>
Tested-by: Nicolas Norvez <>
Reviewed-by: Mike Frysinger <>
1 file changed