running an OpenVZ VPS: Debian lenny

drush info

No information available.                                                                           [error]
An error occurred at function : drush_pm_info                                                       [error]

drush info -v

Initialized Drupal 6.13 root directory at /my/directory/drupal                                        [notice]
Initialized Drupal site default at sites/default                                                       [notice]
Including version specific file : /mydirectory/aegir/drush/commands/pm/update_info/drupal_6.inc                [notice]
No information available.                                                                           [error]
An error occurred at function : drush_pm_info                                                       [error]
Command dispatch complete                                                                              [notice]

drush info -d

Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.015 sec]                                  [bootstrap]
Loading drushrc "/mydirectory/aegir/drupal-6.x/drushrc.php" into "drupal" scope. [0.016 sec]                [bootstrap]
Initialized Drupal 6.13 root directory at /mydirectory/aegir/drupal-6.x [0.024 sec]                            [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.026 sec]                                  [bootstrap]
Initialized Drupal site default at sites/default [0.026 sec]                                           [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.028 sec]                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.032 sec]                              [bootstrap]
Successfully connected to the Drupal database. [0.032 sec]                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.037 sec]                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.147 sec]                                 [bootstrap]
Found command: info [0.149 sec]                                                                     [bootstrap]
Including version specific file : /mydirectory/aegir/drush/commands/pm/update_info/drupal_6.inc [0.149 sec]    [notice]
No information available. [0.149 sec]                                                               [error]
An error occurred at function : drush_pm_info [0.149 sec]                                           [error]
Command dispatch complete [0.15 sec]                                                                   [notice]

drush enable update

Update status is already enabled.                                                                   [error]
There were no modules that could be enabled.                                                        [ok]

Comments

KrisBulman’s picture

Title: An error occurred at function : drush_pm_enable » An error occurred at function : drush_pm_info

oops, title should be: "An error occurred at function : drush_pm_info"

naught101’s picture

Subscribing. What exactly should "drush info" show? A friend said that it used to show update information?

jasonn1234’s picture

Version: All-Versions-2.0 »
Component: Installation » Code
Status: Active » Needs review
StatusFileSize
new857 bytes

The "drush info" command requires an additional parameter - project name. So just "drush info" bombs out. "drush info cck" or the like works as expected.

The attached patch adds an error message if "drush info" is called without arguments:

Too few arguments. Include a project name. Example: drush info cck [error]

babbage’s picture

Title: An error occurred at function : drush_pm_info » Provide error message when project name not provided for drush info
Category: bug » feature
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new887 bytes

More a feature request than a bug report. Patch looks good, works well. Sensible addition.

More cleanly-applying version of the patch in #3 attached; also removes unnecessary whitespace introduced by that patch.

babbage’s picture

Title: Provide error message when project name not provided for drush info » Provide warning message when project name not provided for drush info
StatusFileSize
new878 bytes

Better still, make it a warning message rather than an error message, which makes more sense and also eliminates the additional "An error occurred at function : drush_pm_info" which is otherwise appended to the proposed message.

Slightly improved the grammar of the message as well, to now read:
Too few arguments; you must include a project name. Example: drush info cck.

babbage’s picture

StatusFileSize
new877 bytes

Hmm, removed the trailing fullstop I introduced into the warning message lest someone misunderstand the example:
Too few arguments; you must include a project name. Example: drush info cck

moshe weitzman’s picture

Status: Reviewed & tested by the community » Needs work

for dl command, a lack of project implies the drupal project. probably should do same here.

jonhattan’s picture

Component: Code » PM (dl, en, up ...)
Status: Needs work » Fixed

At present the command is not "info" but pm-releases (we need to supress deprecated aliases).

It now defaults to drupal. Was added along with #843740: Add pm-releasenotes command to extract the release notes from drupal.org

Status: Fixed » Closed (fixed)

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