some cleanup and ensure the package file is deleted after install

This commit is contained in:
Shannon
2019-01-16 01:02:21 +11:00
parent db2a003444
commit 20d6a3b4b4
3 changed files with 2 additions and 9 deletions

View File

@@ -287,7 +287,6 @@ namespace Umbraco.Web.Editors
var model = new LocalPackageInstallModel
{
PackageGuid = Guid.Parse(packageGuid),
//RepositoryGuid = Guid.Parse("65194810-1f85-11dd-bd0b-0800200c9a66"),
ZipFileName = fileName
};
@@ -415,7 +414,7 @@ namespace Umbraco.Web.Editors
var clientDependencyUpdated = clientDependencyConfig.UpdateVersionNumber(
UmbracoVersion.SemanticVersion, DateTime.UtcNow, "yyyyMMdd");
//fixme: when do we delete the zip file?
zipFile.Delete();
var redirectUrl = "";
if (packageInfo.Control.IsNullOrWhiteSpace() == false)
@@ -431,7 +430,6 @@ namespace Umbraco.Web.Editors
Id = model.Id,
ZipFileName = model.ZipFileName,
PackageGuid = model.PackageGuid,
//RepositoryGuid = model.RepositoryGuid,
PostInstallationPath = redirectUrl
};