When using drush distro mydistro --untar, my custom feature is not present in the .install file. The $features array is empty at the line :

  // revert features to ensure they are all installed
  $features = array(
    ''
  );
  features_revert($features);// Create a default role for site administrators, with all available permissions assigned.

even if my feature is activated on my local site.

Moreover, in the mydistro.info file, my feature module was not listed at the end of the file, beside these lines :

; Features
dependencies[] = features

but more at the top, like any other contributed module.

I guess these behaviors are caused by the fact that my feature is not in the "Features" package, but in a custom one, declared like this :

name = MyFeature
core = 7.x
package = MyPackage
php = 5.2.4


The problem resides in _profiler_builder_list_features() where an array of all the activated modules is created and the features are retrieved filtering this array with items which have ['Features']key.

Comments

btopro’s picture

Version: 7.x-1.0-rc3 » 7.x-1.x-dev
Assigned: Unassigned » btopro
Status: Active » Fixed

You are correct that would cause an issue and thank you for outlining / targeting where the issue was.

From looking at that function it appears that it was doing way too much redundantly to calculate what features were (and obviously poorly). I've pushed a commit that will now change it to use the Features module to calculate it. Here's the updated function but this will be added to the latest dev tonight.

http://drupalcode.org/project/profiler_builder.git/blob/0b7a860:/profile...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.