as of #1180672-6: Add minimal version for media dependency (which i hereby confirm):

$ drush pm-enable -y media_gallery
Module media_gallery cannot be enabled because it depends on media (1.0-beta5) but 7.x-1.0-beta5 is available
$ cat .../media/media.info | grep version
version = "7.x-1.0-beta5"
$ cat media_gallery/media_gallery.info |grep "media ("
dependencies[] = media (<1.99)

installing through the ui works fine though.

looks like the ui is right and drush is wrong.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

geek-merlin’s picture

Status: Active » Needs review
FileSize
1.05 KB

got it!
attached patch handles version string passed to drupal_check_incompatibility() the way system_modules() does.
see: http://api.drupal.org/api/drupal/modules--system--system.admin.inc/funct...

moshe weitzman’s picture

Assigned: Unassigned » jonhattan
Status: Needs review » Reviewed & tested by the community

Looks right. Perhaps jonhattan can verify.

moshe weitzman’s picture

Status: Reviewed & tested by the community » Fixed

committed to master and 4.x

Status: Fixed » Closed (fixed)

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