diff --git a/src/Umbraco.Core/Services/PackageInstallerService.cs b/src/Umbraco.Core/Services/PackageInstallerService.cs index 530d0612f2..bf5cf26e00 100644 --- a/src/Umbraco.Core/Services/PackageInstallerService.cs +++ b/src/Umbraco.Core/Services/PackageInstallerService.cs @@ -139,8 +139,10 @@ namespace Umbraco.Core.Services private static string GetUninstallActions(XElement actionsElement) { //saving the uninstall actions untill the package is uninstalled. - return actionsElement.Elements(Constants.Packaging.ActionNodeName).Where(e => e.HasAttributes && e.Attribute(Constants.Packaging.UndoNodeAttribute) != null && e.Attribute(Constants.Packaging.UndoNodeAttribute).Value.Equals("false()", StringComparison.InvariantCultureIgnoreCase) == false) // SelectNodes("Actions/Action [@undo != false()]"); - .Select(m => m.Value).Aggregate((workingSentence, next) => next + workingSentence); + return actionsElement.Elements(Constants.Packaging.ActionNodeName) + .Where(e => e.HasAttributes && e.Attribute(Constants.Packaging.UndoNodeAttribute) != null && e.Attribute(Constants.Packaging.UndoNodeAttribute) + .Value.Equals("false()", StringComparison.InvariantCultureIgnoreCase) == false) // SelectNodes("Actions/Action [@undo != false()]"); + .Select(m => m.Value).Aggregate((workingSentence, next) => next + workingSentence); } private static IEnumerable> GetInstallActions(XElement actionsElement) diff --git a/src/Umbraco.Core/Services/PackageValidationHelper.cs b/src/Umbraco.Core/Services/PackageValidationHelper.cs index cfdb98da0c..e818781734 100644 --- a/src/Umbraco.Core/Services/PackageValidationHelper.cs +++ b/src/Umbraco.Core/Services/PackageValidationHelper.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using Umbraco.Core.Models; namespace Umbraco.Core.Services