Merge pull request #36018 from meaksh/bp-36000-to-2015.8

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

View file

@ -866,11 +866,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