cargo2ebuild: Handle version parse errors and do not replace existing.

This adds:
* error handling for version parse errors, so the script can
  still be used (with user cleanup required).
* a '-x' command line flag that can be used to overwrite existing
  ebuilds. The new default behavior is to leave existing ebuilds.

BUG=None
TEST=manual testing.

Change-Id: Ib78bd272c83d02eae1aeb235eb553077b0471067
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2868045
Tested-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Commit-Queue: Allen Webb <allenwebb@google.com>
1 file changed