[Downloader] Only show updates for cog .py files (#1316)

This commit is contained in:
Caleb Johnson 2018-03-17 09:57:47 -05:00 committed by Twentysix
parent fec0e936f6
commit b21bb9aeb5

View File

@ -654,7 +654,13 @@ class Downloader:
continue continue
status, _, cogpath = f.partition('\t') status, _, cogpath = f.partition('\t')
cogname = os.path.split(cogpath)[-1][:-3] # strip .py split = os.path.split(cogpath)
cogdir, cogname = split[-2:]
cogname = cogname[:-3] # strip .py
if len(split) != 2 or cogdir != cogname:
continue
if status not in ret: if status not in ret:
ret[status] = [] ret[status] = []
ret[status].append(cogname) ret[status].append(cogname)