Switched from manually performing a package database refresh to using Salt's pkg.refresh_db().  This works across all platforms supported by Salt, including winrepos.