Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop multiple refreshes during call to pkg.list_upgrades #34898

Merged
merged 1 commit into from Jul 22, 2016
Merged

Stop multiple refreshes during call to pkg.list_upgrades #34898

merged 1 commit into from Jul 22, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jul 22, 2016

What does this PR do?

During a call to pkg.list_upgrades, pkg.latest_version gets called once for every package,
and pkg.latest_version calls refresh_db each time. I've passed refresh=False to pkg.latest
version, so it doesn't do any refreshing at all. pkg.list_upgrades is now solely reponsible
for refreshing or not refreshing.

What issues does this PR fix or reference?

#33620

Previous Behavior

One refresh per package and possibly another refresh too if param refresh to list_upgrades
isn't passed (defaults to True) or has value of True.

New Behavior

Maximally one refresh.

Tests written?

No

@cachedout cachedout merged commit 6ccc27f into saltstack:2015.8 Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant