Problem/Motivation
When using drush features-export
on Drupal 6 to export additional configurations to an existing feature, the module fails to find existing features unless they are located directly inside sites/all/modules. The module does not find existing features that may be organized in subfolders such as sites/all/modules/custom_features/
, and proceeds to recreate a "new" version of the same module and places it in sites/all/modules.
Proposed resolution
Leverage some of the existing code used in drush features-update
to do better features detection, to look for existing features throughout the drupal codebase, before assuming the feature doesn't exist and creating it in sites/all/modules.
Remaining tasks
Write Patch.- Review Patch.
- Commit.
User interface changes
None.
API changes
None.
Data model changes
None.
Similar/related issues
Comment | File | Size | Author |
---|---|---|---|
#4 | features-drush-features-export-detection-D6-2623252-4.patch | 744 bytes | jwilson3 |
#2 | features-drush-features-export-detection-D6-2623252-2.patch | 639 bytes | jwilson3 |
Comments
Comment #2
jwilson3This patch leverages similar code used in
drush features-update
to detect existing features before handing off to features-export.Comment #3
jwilson3Marked #1558606: Add a component to a feature in D6 using drush? as a duplicate of this issue.
Comment #4
jwilson3Needed to add an array_merge_recursive to merge new exports with existing exports.
Comment #5
jwilson3For the moment, this solution does not work with wildcards. you have to specify each and every item you want to export completely.
Example 1: Does not work:
Example 2: Does work: