{"action":"closed","issue":{"url":"https://api.github.com/repos/drush-ops/drush/issues/328","labels_url":"https://api.github.com/repos/drush-ops/drush/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/328/comments","events_url":"https://api.github.com/repos/drush-ops/drush/issues/328/events","html_url":"https://github.com/drush-ops/drush/issues/328","id":24296770,"number":328,"title":"release_info_get_releases() undefined","user":{"login":"tnanek","id":215001,"avatar_url":"https://avatars.githubusercontent.com/u/215001?v=3","gravatar_id":"","url":"https://api.github.com/users/tnanek","html_url":"https://github.com/tnanek","followers_url":"https://api.github.com/users/tnanek/followers","following_url":"https://api.github.com/users/tnanek/following{/other_user}","gists_url":"https://api.github.com/users/tnanek/gists{/gist_id}","starred_url":"https://api.github.com/users/tnanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnanek/subscriptions","organizations_url":"https://api.github.com/users/tnanek/orgs","repos_url":"https://api.github.com/users/tnanek/repos","events_url":"https://api.github.com/users/tnanek/events{/privacy}","received_events_url":"https://api.github.com/users/tnanek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-12-14T18:23:08Z","updated_at":"2015-07-18T18:21:07Z","closed_at":"2015-07-18T18:21:07Z","body":"I am writing a custom command to simplify my Drupal upgrade procedure (customized symlinks and whatnot to automatically be established instead of manually copying my site's files and settings from one build to the next). I have run into an issue in trying to get the date of the latest release of the dev build of Drupal. The code I tried to use was drush_pm_releases(\"drupal\"); will be adding qualifiers of version number once I get that working. I was hoping this would contain the date of the latest release.\r\n\r\nHere's the validation part of the command so far:\r\n```\r\nfunction drush_custom_drupal_update_validate() {\r\n  drush_print('drush_custom_drupal_update_validate starts now');\r\n  if (!drush_shell_exec('wget --spider %s', 'http://www.google.com')) {\r\n    return drush_log('Internet connection is down.', 'error');\r\n  }\r\n  $version = drush_drupal_version();\r\n  /**\r\n   * If its a dev version, do extra checking,\r\n   * taking the date of latest release into account,\r\n   * to be compared to current root directory date\r\n   * Not using GIT repositories because of the projects within\r\n   * being GIT repos in and of themselves.\r\n   */\r\n  if (strpos($version, '-dev')!== FALSE) {\r\n    drush_print(drush_pm_releases(\"drupal\"));\r\n  }\r\n  return;\r\n}\r\n```\r\n\r\n\r\nCLI:\r\n```\r\n[~] drush version\r\n Drush Version   :  7.0-dev \r\n\r\n[~] drush @8 custom-drupal-update -v\r\nLoaded alias @8 from file /home/USER/.drush/custom.aliases.drushrc.php                         [notice]\r\nInitialized Drupal 8.0-dev root directory at /home/USER/drupal/8.x                             [notice]\r\ndrush_custom_drupal_update_validate starts now\r\nExecuting: wget --spider http://www.google.com\r\nPHP Fatal error:  Call to undefined function release_info_get_releases() in /usr/local/share/drush/commands/pm/pm.drush.inc on line 1098\r\nDrush command terminated abnormally due to an unrecoverable error.                            [error]\r\nError: Call to undefined function release_info_get_releases() in\r\n/drush-root-directory/commands/pm/pm.drush.inc, line 1098\r\n```\r\n\r\nFor now I'll revert to the 6.x branch and continue my custom command set; though on speculation it seems as if the file commands/pm/release_info/updatexml.inc hadn't been included."}}