Merge pull request #36353 from rallytime/refresh-db-cleanup

Check for Ign/Hit membership instead of == in aptpkg.refresh_db
This commit is contained in:
Thomas S Hatch 2016-09-16 09:20:30 -06:00 committed by GitHub
commit 40b2e3d189

View file

@ -361,9 +361,9 @@ def refresh_db():
# Strip filesize from end of line
ident = re.sub(r' \[.+B\]$', '', ident)
ret[ident] = True
elif cols[0] == 'Ign':
elif 'Ign' in cols[0]:
ret[ident] = False
elif cols[0] == 'Hit':
elif 'Hit' in cols[0]:
ret[ident] = None
return ret