cros_workon info: Better handling of CROS_WORKON_PROJECT.
We currently have a problem with -9999 ebuilds with multiple values in
CROS_WORKON_PROJECT are causing cros_workon to output errors. This is
fixed as follows:
- CROS_WORKON_PROJECT assignments are extracted more precisely,
- Multiple values are concatenated into comma-separated strings.
- When no project value(s) were found, output a dash ('-').
- When an error occurs we do not attempt to dump information for that
This would still print an error if some assignment failed to evaluate
correctly, making the problem evident (and allowing us to further adjust
the parsing logic as needed).
TEST='cros_workon info' parses all ebuilds correctly.
TEST=cros_workon info system_api shows complete list of projects.
Reviewed-by: David James <email@example.com>
Tested-by: Gilad Arnold <firstname.lastname@example.org>
Commit-Queue: Gilad Arnold <email@example.com>
1 file changed