Don't automatically enable all features after a module step execution. Use the feature step.

--HG--
branch : dev
This commit is contained in:
Suha Can
2011-03-24 16:47:08 -07:00
parent d3223b0dfa
commit 3359d7b2aa

View File

@@ -85,16 +85,7 @@ namespace Orchard.Recipes.RecipeHandlers {
if (packagingEntry != null) {
_packageManager.Install(packagingEntry.PackageId, packagingEntry.Version, packagingSource.FeedUrl, HostingEnvironment.MapPath("~/"));
foreach (var features in
from extensionDescriptor in _extensionManager.AvailableExtensions()
where extensionDescriptor.Name.Equals(packagingEntry.Title, StringComparison.OrdinalIgnoreCase)
select extensionDescriptor.Features.Select(f => f.Name).ToArray()) {
_featureManager.EnableFeatures(features);
_dataMigrationManager.Update(features);
installed = true;
}
installed = true;
}
if (!installed) {