When attempting to download the recommended Drupal 5.x release of a module, when operating without a drupal root, it defaults to getting the Drupal 6.x release
Moya:~ adrian$ drush dl admin_menu-5.x
Project admin_menu (6.x-1.3) downloaded to /Users/adrian/. [success]
I ended up having to go to the module page, and retrieving the correct version , ie: admin-menu-5.x-2.8
At the very least this should be documented.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 463110.patch | 3 KB | owen barton |
Comments
Comment #1
owen barton commentedDrush previously would default to Drupal 6.x if you were outside of a bootstrapped site - so this was trying to get admin_menu-6.x-5.x-dev - which could not be found, and so it defaulted to the latest stable version. Obviously not what you expected.
The attached patch improves this, so if you are not within a bootstrapped site the first version parameter will be used as the Drupal core version (overriding the default). The second value will be used as the project version, or the latest stable version will be found if it is not present.
If you are within a bootstrapped site the Drupal version will default to your Drupal version and the first value will be interpreted as the project version (assuming a second value is not present).
Comment #2
owen barton commentedCommitted this