mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
fix ninjalog_uploader.py
This is to fix https://crbug.com/1288639#c5 Bug: 1288639 Change-Id: Ife224fb5d5fe4faa4a78785828d4fa488fda3c6e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3403475 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Fumitoshi Ukai <ukai@google.com> Commit-Queue: Fumitoshi Ukai <ukai@google.com>
This commit is contained in:
@@ -45,7 +45,10 @@ def IsGoogler():
|
||||
shell=True)
|
||||
if p.returncode != 0:
|
||||
return False
|
||||
l = p.stdout.splitlines()[0]
|
||||
lines = p.stdout.splitlines()
|
||||
if len(lines) == 0:
|
||||
return False
|
||||
l = lines[0]
|
||||
# |l| will be like 'Login as <user>@google.com' for googler using goma.
|
||||
return l.startswith('Login as ') and l.endswith('@google.com')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user