From 2f4b0b9e56d2e2a04116308d2a642ffa314036a8 Mon Sep 17 00:00:00 2001 From: "tandrii@chromium.org" Date: Fri, 2 Oct 2015 14:05:13 +0000 Subject: [PATCH] apply_issue: 89 ret code on network/Rietveld failures. This would allow bot_update to differentiate between patch download and aplication failures. R=phajdan.jr@chromium.org,sergiyb@chromium.org BUG=537417 Review URL: https://codereview.chromium.org/1380093003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@296983 0039d316-1c4b-4281-b951-d872f2087c98 --- apply_issue.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apply_issue.py b/apply_issue.py index ba389878f..dd77d8eb0 100755 --- a/apply_issue.py +++ b/apply_issue.py @@ -209,7 +209,9 @@ def main(): 'Try visiting %s/%d') % ( issue_to_apply, patchset_to_apply, options.server, issue_to_apply) - return 1 + # Special code for bot_update to indicate that cause is network or + # Rietveld. Not 2, because 2 is returned on arg parsing failure. + return 3 if options.whitelist: patchset.patches = [patch for patch in patchset.patches if patch.filename in options.whitelist]