System names for modules listed on admin/modules do not match module names on d.o or within drush.

1. Visit admin/modules
2. Find a module with a missing dependency
3. Copy the listed module name of the missing dependency
* Note, the module's name will be Title Case, that is, the first letter of the module name will be capitalized
4. Switch to a shell in order to use drush
5. type 'drush dl', then paste the module name and hit enter
* Note, you get an error, "No release history available".

The case of the pasted module name does not match the case of the project in drush.

To fix, the system names of modules on the admin/modules page should be displayed in the same case as on Drupal.org (and those used in drush).

This is a minor problem, but a simple one to fix and one that breaks a productive workflow.

See https://img.skitch.com/20110814-dijqj8sj8yiwdfre54cupkm166.png for an example.

Comments

sivaji_ganesh_jojodae’s picture

Project: Drupal core » Drush
Version: 7.7 »
Component: base system » PM (dl, en, up ...)
Category: bug » support

The modules name that you see at admin/modules is same as what it is defined in module's info file. Core works as designed, IMO. You could use grep to find the machine name of a module like $ drush pm-list | grep -i "My Module name". Moving this issue to Drush project.

Michael-IDA’s picture

Have to agree with sivaji. Core takes precedents over an addon.

But, this has been an 'issue' with drush for a long time. And the simplest way has been to find the module on http://drupal.org/project/ and copy and paste that. Or just lowercase the name and guess at underscores, which fails about 50% of the time...

I don't think I've ever seen an uppercase letter in a project (module) name, would it be possible for drush to lowercase on failure? (e.g. try it first as given, then lowercase and replace spaces with underscores and try again?) Solves the issue without trying to move a gorilla.

Edit:
Solves much of the issue.

>> Requires: Views (enabled), Chaos tools (missing), Views_bulk_operations (missing)

"Chaos tools" is "ctools," so nothing short of drush having a known module indexing table would completely fix this.

jonhattan’s picture

Status: Active » Closed (works as designed)

Drush 5.x already convert dashes to underscores and lowecase project names. This feature was not backported to 4.x