Merge pull request #36019 from meaksh/bp-36000-to-2016.3

Back-port #36000 to 2016.3
This commit is contained in:
Nicole Thomas 2016-09-02 14:34:30 -06:00 committed by GitHub
commit e88df5845d

View file

@ -871,11 +871,11 @@ def refresh_db():
for line in out.splitlines():
if not line:
continue
if line.strip().startswith('Repository'):
if line.strip().startswith('Repository') and '\'' in line:
key = line.split('\'')[1].strip()
if 'is up to date' in line:
ret[key] = False
elif line.strip().startswith('Building'):
elif line.strip().startswith('Building') and '\'' in line:
key = line.split('\'')[1].strip()
if 'done' in line:
ret[key] = True