The module.info files allow version information to be added after a modules name, such as:

dependencies[] = oa_core (>2.22)

However, in the features_get_normal() function, it is calling module_exists on the info array, which will fail on lines containing version info. This patch adds a helper function that parses the dependency name before calling module_exists.

This fixes some issues with Overrides caused by dependencies with version info.

Patch incoming...

Comments

mpotter’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB
mpotter’s picture

Status: Needs review » Reviewed & tested by the community

This is such a no-brainer fix that I'm marking it as RTBC for the next release.

mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 4953859

  • mpotter committed 4953859 on 7.x-2.x
    Issue #2497153 by mpotter: Handle version info in dependencies
    

Status: Fixed » Closed (fixed)

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