A small test Drupal 7.x (latest git code) site with a collection of modules and themes installed. Drush (latest 7.x-4.x branch) is behaving oddly.

When I run "drush upc" I get the following:

$ drush upc
Refreshing update status information ...
Done.
Update information last refreshed: Fri, 04/03/2011 - 5:58am

Update status information on all installed and enabled Drupal projects:
 Name              Installed version  Proposed version  Status                                   
 Address Field     7.x-1.0-alpha1     7.x-1.0-alpha1    Up to date                               
 Drupal core       7.0-dev            7.0-dev           Unable to check status                   
 Chaos tool suite  7.x-1.0-alpha2     7.x-1.0-alpha2    Up to date                               
 Calendar          7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Drupal Commerce   7.x-1.0-beta1      7.x-1.0-beta2     Update available                         
 Context           7.x-3.0-alpha3     7.x-3.0-beta1     Update available                         
 Date              7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Devel             7.x-1.0            7.x-1.0           Up to date                               
 Entity API        7.x-1.0-beta7      7.x-1.0-beta7     Up to date                               
 Field group       7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Styles            7.x-2.0-alpha5     7.x-2.0-alpha5    Up to date                               
 Link              7.x-1.0-alpha3     7.x-1.0-alpha3    Up to date                               
 Media             7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Media: Flickr     7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Media: YouTube    7.x-1.0-alpha4     7.x-1.0-alpha4    Up to date                               
 Micro             7.x-1.x-dev        7.x-1.x-dev       Update available                         
 Multiple forms    7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 References        7.x-2.x-dev        7.x-2.x-dev       Up to date                               
 Pathauto          7.x-1.0-beta1      7.x-1.0-beta1     Up to date                               
 Rules             7.x-2.0-alpha5     7.x-2.0-alpha5    Up to date                               
 Token             7.x-1.0-beta1      7.x-1.0-beta1     Up to date                               
 Views             7.x-3.x-dev        7.x-3.x-dev       Up to date                               
 Wysiwyg           7.x-2.0            7.x-2.0           Up to date                               

Code updates will be made to the following projects: Drupal Commerce [commerce-7.x-1.0-beta2], Context [context-7.x-3.0-beta1], Micro [micro-7.x-1.x-dev]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue with the update process? (y/n): n
Aborting.

What's notable is that the Omega theme is installed and Update Manager shows the following:

Drupal Commerce	7.x-1.0-beta1	7.x-1.0-beta2 (Release notes)
Context	7.x-3.0-alpha3	7.x-3.0-beta1 (Release notes)
Media browser plus	7.x-1.x-dev	7.x-1.0-beta2 (Release notes)
Micro	7.x-1.x-dev	7.x-1.x-dev (Release notes)
Omega (960gs & HTML5) (Theme)	7.x-2.0	7.x-2.1 (Release notes)

When I manually tell it to update Omega it behaves differently:

$ drush upc omega
Refreshing update status information ...
Done.
Update information last refreshed: Fri, 04/03/2011 - 6:01am

Update status information on all installed and enabled Drupal projects:
 Name                Installed version  Proposed version  Status                                   
 Address Field       7.x-1.0-alpha1     7.x-1.0-alpha1    Up to date                               
 Drupal core         7.0-dev            7.0-dev           Unable to check status                   
 Chaos tool suite    7.x-1.0-alpha2     7.x-1.0-alpha2    Up to date                               
 Calendar            7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Drupal Commerce     7.x-1.0-beta1      7.x-1.0-beta2     Update available                         
 Context             7.x-3.0-alpha3     7.x-3.0-beta1     Update available                         
 Date                7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Devel               7.x-1.0            7.x-1.0           Up to date                               
 Entity API          7.x-1.0-beta7      7.x-1.0-beta7     Up to date                               
 Field group         7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Styles              7.x-2.0-alpha5     7.x-2.0-alpha5    Up to date                               
 Link                7.x-1.0-alpha3     7.x-1.0-alpha3    Up to date                               
 Media               7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Media browser plus  7.x-1.x-dev        7.x-1.x-dev       Update available                         
 Media: Flickr       7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 Media: YouTube      7.x-1.0-alpha4     7.x-1.0-alpha4    Up to date                               
 Micro               7.x-1.x-dev        7.x-1.x-dev       Update available                         
 Multiple forms      7.x-1.x-dev        7.x-1.x-dev       Up to date                               
 References          7.x-2.x-dev        7.x-2.x-dev       Up to date                               
 Pathauto            7.x-1.0-beta1      7.x-1.0-beta1     Up to date                               
 Rules               7.x-2.0-alpha5     7.x-2.0-alpha5    Up to date                               

No code updates available.

Note that it still doesn't list Omega but now it's also missing Token, Views and WYSIWYG from the list.

Comments

DamienMcKenna’s picture

Status: Active » Postponed (maintainer needs more info)

FYI this only happens when running a patch for an Update Manager bug, the question is whether it's a bug in the patch or drush needs to be updated to suit.

himerus’s picture

I'm not positive, but I've been hitting an issue (without the Update Manager patch) with drush up.

If I go to the available updates in Drupal, I get a list of say 10 modules (and themes) that need to be updated.

If I do drush up, the first time it may say I have no updates available, or it may say I have 3 or 4. Then I install those, run drush up again, and whoa, there are 3 or 4 more updates available via Drush.

I think in the 4.x version of Drush, the whole update status portion of refreshing data seems to be a bit "wonky".

Could this be a similar issue, and running drush up or drush upc several times will in fact show the updates you expect to see??

DamienMcKenna’s picture

I've hit that too, I thought that it was just a coincidence that updates had become available that were then picked up after the first update executed cache clear all and the second update re-polled for updates. BICBW.

DamienMcKenna’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)