Problem/Motivation

The main drawback of this module is that you end up with lots of modules installed that aren't doing anything.

Proposed resolution

Add a post-post update that:
- finds installed update modules
- uninstalls them
- adds them to a variable (using variable_get()/set() for now) so that they don't get re-installed.

Also ensure the before/after installs check that variable before they install anything.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch created an issue. See original summary.

plach’s picture

Status: Active » Needs review
FileSize
5.47 KB

Here's a patch implementing the proposed solution and an additional drush rum command that will remove uninstalled DUMs. Actually it will move them to a removed subdirectory and rename .info files to .info.removed so they will no longer be detected as modules.

plach’s picture

FileSize
6.22 KB
4.46 KB

Actually, I didn't realize DUM is already keeping track of seen modules. Refactored the previous patch to use that instead.

plach’s picture

FileSize
612 bytes
6.29 KB

One more little fix, we should be good now

marco’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested, this works well.

plach’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2 KB
5.97 KB

Actually it seems drush can pick up the .drush.inc code even before the module is enabled, which makes the update fail because the .module is not enabled yet. This updated patch takes case of that.

marco’s picture

Status: Needs review » Reviewed & tested by the community

I've verified the issue mentioned above can happen, and that the change prevents it.

  • plach committed 80ccc82 on 7.x-1.x
    Issue #2655340 by plach, catch, marco: Track update modules,...
plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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