Skip to content

Commit

Permalink
(GH-995) rename before_package_upgrade
Browse files Browse the repository at this point in the history
This is really before upgrade or uninstall, so it should be named
appropriately.
  • Loading branch information
ferventcoder committed Oct 3, 2016
1 parent 92035b7 commit 19ea1a4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu

get_environment_before(config, allowLogging: true);

var beforeUpgradeAction = new Action<PackageResult>(packageResult => before_package_upgrade(packageResult, config));

var beforeUpgradeAction = new Action<PackageResult>(packageResult => before_package_modify(packageResult, config));
var packageUpgrades = perform_source_runner_function(config, r => r.upgrade_run(config, action, beforeUpgradeAction));

var upgradeFailures = report_action_summary(packageUpgrades, "upgraded");
Expand All @@ -705,7 +704,7 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu
return packageUpgrades;
}

private void before_package_upgrade(PackageResult packageResult, ChocolateyConfiguration config)
private void before_package_modify(PackageResult packageResult, ChocolateyConfiguration config)
{
_powershellService.before_modify(config, packageResult);
}
Expand Down

0 comments on commit 19ea1a4

Please sign in to comment.