Skip to content

Commit

Permalink
Merge pull request saltstack#36353 from rallytime/refresh-db-cleanup
Browse files Browse the repository at this point in the history
Check for Ign/Hit membership instead of == in aptpkg.refresh_db
  • Loading branch information
thatch45 authored Sep 16, 2016
2 parents df9d9b3 + 2753191 commit 40b2e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/modules/aptpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 40b2e3d

Please sign in to comment.