[dev-util] Clean up stale workdirs when using cros_workon_make

If the user has previously used FEATURES=noclean or keepwork in emerging his package,
then cros_workon_make will happily use this stale checkout unless --reconf is passed.
We should detect such a stale work dir and for a reconf.

BUG=chromium-os:15770
TEST=clear the work dir, FEATURES=noclean emerge-BOARD <package>, cros_workon_make <package>, and then ls -l the work dir to see that there's a symlink in there pointing to the user's source checkout

Change-Id: I6312daa609ae11ab183b1fc4ab66016919c9f518
Reviewed-on: http://gerrit.chromium.org/gerrit/1590
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
1 file changed