Similar to the core Drupal 7 issue (#986616: Update Manager fails when the primary module/theme for a project lives in a subdirectory), pm-update (pm-updatecode, up, upc) fails to correctly update projects where the primary module lives within a subdirectory of the project. A good example is the Omega theme which contains the following directory structure:
- CHANGELOG.txt
- DRUPAL7.txt
- LICENSE.txt
- README.txt
- assets
- omega
- starterkit
- starterkit_xhtml
When the Omega project is updated using Drush it incorrectly deletes all of the files from sites/all/themes/omega/omega and then downloads the full package to sites/all/themes/omega/omega, leaving the base theme at sites/all/themes/omega/omega/omega.
Given that Drush supports Drupal 5, 6 and 7 we can't just defer to the Drupal 7 core patch from #986616 as we'd like the fix to work on all versions, so we're left re-implementing the fix in _pm_get_project_path().
Comments
Comment #1
himerus CreditAttribution: himerus commentedsubscribe
Comment #2
jonhattanI bet it is already fixed because now we find the path by using all extensions in the project, not only enabled ones.
Well, I've done a test: