Commit ab4d438e authored by szager@chromium.org's avatar szager@chromium.org

Don't use -rc versions of gerrit.

This is an emergency patch to avoid picking up the
upcoming 2.9-rc0 version of gerrit, which requires java 7
and will break the chromeos bots.

BUG=346369
R=davidjames@chromium.org

Review URL: https://codereview.chromium.org/196063003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@256378 0039d316-1c4b-4281-b951-d872f2087c98
parent 16c319dd
......@@ -88,8 +88,12 @@ def _cmp(a, b):
an.append('0')
while len(bn) < len(an):
bn.append('0')
an.append(a[2][3:] if a[2] else '1000')
bn.append(b[2][3:] if b[2] else '1000')
# Disable using -rc versions. This is a temporary hack to avoid
# picking up version 2.9-rc0, which requires java 7. These lines
# should be un-commented after this bug is fixed:
# https://code.google.com/p/chromium/issues/detail?id=346369
# an.append(a[2][3:] if a[2] else '1000')
# bn.append(b[2][3:] if b[2] else '1000')
for i in range(len(an)):
if an[i] != bn[i]:
return -1 if int(an[i]) > int(bn[i]) else 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment