function make_project_needs_release_info

8.0.x make.drush.inc make_project_needs_release_info($project)
6.x make.drush.inc make_project_needs_release_info($project)
7.x make.drush.inc make_project_needs_release_info($project)
5.x make.drush.inc make_project_needs_release_info($project)
master make.drush.inc make_project_needs_release_info($project)

Determine if the release information is required for this project. When it is determined that it is, this potentially results in the use of pm-download to process the project.

If the location of the project is not customized (uses d.o), and one of the following is true, then release information is required:

  • $project['type'] has not been specified
  • $project['download'] has not been specified

See also

make_projects()

1 call to make_project_needs_release_info()
make_projects in commands/make/make.drush.inc
Process all projects specified in the make file.

File

commands/make/make.drush.inc, line 579
Drush Make commands.

Code

function make_project_needs_release_info($project) {
  return isset($project['location'])
  // Only fetch release info if the project type is unknown OR if
  // download attributes are unspecified.
  && (!isset($project['type']) || !isset($project['download']));
}