Check for Ign/Hit membership instead of == in aptpkg.refresh_db

This commit is contained in:
rallytime 2016-09-15 16:34:05 -06:00
parent d2a583bc22
commit 275319193a

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