saltstack/salt — pull request #5594 by terminalmage (2013-06-17 21:19:59+00:00)
Title: Run refresh_db in latest_version

This ensures that we are getting the latest package data available.
Without this, some pkg.latest states might mistakenly report as
up-to-date when the package really does have an upgrade available.