Skip to content

Commit

Permalink
(chocolateyGH-268) Rename Legacy Prior to Before Modify
Browse files Browse the repository at this point in the history
Ensure the folder is renamed prior to running before modify for the
package.
  • Loading branch information
ferventcoder committed Apr 9, 2016
1 parent a7d92f5 commit 43c6d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,13 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu
version == null ? null : version.ToString()))
{
ensure_package_files_have_compatible_attributes(config, installedPackage, pkgInfo);
rename_legacy_package_version(config, installedPackage, pkgInfo);
if (beforeUpgradeAction != null)
{
var currentPackageResult = new PackageResult(installedPackage, get_install_directory(config, installedPackage));
beforeUpgradeAction(currentPackageResult);
}
rename_legacy_package_version(config, installedPackage, pkgInfo);

backup_existing_version(config, installedPackage, pkgInfo);
remove_shim_directors(config, installedPackage, pkgInfo);
if (config.Force && (installedPackage.Version == availablePackage.Version))
Expand Down

0 comments on commit 43c6d10

Please sign in to comment.