]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: tweak conflict handling
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 24 May 2016 04:18:51 +0000 (16:18 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 May 2016 06:49:53 +0000 (07:49 +0100)
commit2a76be958432a35a0de30e9a5433089a54a06cad
tree35e9297c093ab594e819d3339298872c0dc839ba
parent3c623aac9333d20a62475279c72b6b6ec3d7dd6b
devtool: upgrade: tweak conflict handling

Make a couple of changes to the rebase operation:

1) Only wrap the actual rebase command in try...except since a failure
   in any of the other commands should be an error, not a warning
2) If it's a conflict (which unfortunately we can only tell by checking
   for the keyword "conflict" since git doesn't return error codes based
   on the type of error) then print a message clarifying that the user
   needs to resolve the issue themselves to finish the upgrade.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py