mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
40b2e3d189
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue