I have dug through the path that the code follows, and it comes down to the place in drupal_get_install_files() where it calls the function drupal_system_listing(). What happens is if we are turned on the search module, a regex mask is passed into drupal_system_listing() of the form 'search.install$'. Unfortunately this returns installation files for all modules whose names end in the word search... So instead of just running the install for the search module, we get the installation process for the search, apachesolr_search, and acquia search (assuming we're using an Acquia release of Drupal).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | core-install-profiles-toomany-installs-451190-3.patch | 736 bytes | JimBroad |
Comments
Comment #1
damien tournoud commentedNo doubt this is a bug, we are loading all the install files for all the *search modules when installing the search module, but how does that lead to additional modules being installed?
In the meantime, bumping to D7, because the bug is there too.
Comment #2
Gekiboy commentedSorry, it doesn't actually install the module but rather runs the installation function. For some reason that's beyond me currently this causes the installation of my custom profile to completely error out. I tracked it down to this point and realized the problem was in core code and I didn't want to change and patch it without knowing what the reasoning was.
Comment #3
JimBroad commentedThink I just ran into this as well...
and I believe the issue is here:
http://api.drupal.org/api/drupal/includes--install.inc/function/drupal_g...
drupal_system_listing() is called and given a mask of $module .'.install$'
I think the mask should be '^'. $module .'.install$'
I have have attached patch against 6.x-dev
Comment #4
dddave commentedCorrecting status...
Comment #6
David_Rothstein commentedTrying to give this a more accurate title, based on discussion in #875406: drupal_get_install_files returns contrib/custom modules (which is duplicate).
The patch looks reasonable on a quick glance. I think this is only an issue in 6.x now (the equivalent code no longer exists in 7.x).
Comment #7
David_Rothstein commented#3: core-install-profiles-toomany-installs-451190-3.patch queued for re-testing.
Comment #9
JimBroad commented#3: core-install-profiles-toomany-installs-451190-3.patch queued for re-testing.
Comment #11
David_Rothstein commentedThe patch applies fine, so I'm setting this back to "needs review".
Comment #12
geaseWorks fine, should be rolled into the next release, imho.