You are here

function hackedProjectWebCVSDownloader::download_link in Hacked! 6.2

Get information about the CVS location of the project.

2 calls to hackedProjectWebCVSDownloader::download_link()
hackedProjectWebCVSDownloader::download in includes/hacked_project.inc
Download the remote files to the local filesystem.
hackedProjectWebCVSDownloader::get_destination in includes/hacked_project.inc
Returns a directory to save the downloaded project into.

File

includes/hacked_project.inc, line 497

Class

hackedProjectWebCVSDownloader
Downloads a project using CVS.

Code

function download_link() {
  $info = array();
  $pinfo =& $this->project->project_info;

  // Special handling for core.
  if ($pinfo['project_type'] == 'core') {
    $info['cvsroot'] = ':pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal';
    $info['module'] = 'drupal';
    $info['checkout_folder'] = $pinfo['name'] . '-' . $pinfo['info']['version'];
    $info['tag'] = $this
      ->cvs_deploy_get_tag($this->base_filename);
  }
  else {
    $info['cvsroot'] = ':pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib';
    $info['module'] = 'contributions/' . $pinfo['project_type'] . 's/' . $pinfo['name'];
    $info['checkout_folder'] = $pinfo['name'];
    $info['tag'] = $this
      ->cvs_deploy_get_tag($this->base_filename);
  }
  return $info;
}