Closed (fixed)
Project:
Drush
Version:
All-versions-4.x-dev
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
2 Feb 2011 at 10:40 UTC
Updated:
17 May 2011 at 04:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedI did not confirm this but it is new code I think so plausible.
Comment #2
greg.1.anderson commentedWorking fine for me in drush-HEAD.
Are you updating a Drupal-6 or Drupal-7 site? Which modules?
Comment #3
msonnabaum commentedAlso can't reproduce with D6 or D7.
Comment #4
jonhattanThat's great! this issue is theorically impossible to happen :D
To reproduce this we need the output of drush with --debug in order to see what project and modules are involved.
Also,.. now that I remember the patch in #1023120: drush upc rules seems to do something odd make the implied function more fail proof. I'll commit that issue's patch now.
Anyway I'd like to see what's the exact problem to shield that theorically impossible condition.
Comment #5
greg.1.anderson commentedNot impossible:
There may be others... Anyway, I see that you check for '.', but if $path starts off empty for some reason, that could be the cause of this.
Comment #6
pfrenssenI'm experiencing this with the latest 4.5-dev. I attached a debug log, but it is probably of not much use, as it keeps generating errors indefinitely after bootstrapping.
Comment #7
pfrenssenHere's the list of modules. The site runs 6.x.
Comment #8
pfrenssenIn my case the problem was caused by having a custom module and a custom theme installed which both declared "project = 'projectname'" in their .info files. So we had a project containing both a module and a theme (which is probably illegal), and neither were coming from drupal.org.
Custom modules and themes should not declare "project" in their .info files but this happens in the wild when .info files from existing projects are copy/pasted.
Comment #9
jonhattanso having a module and a theme with the same project name produces a call to drupal_get_path('module', 'the_theme') returning "".
Attached patch does prevent this case by discarding custom projects: those without a project in drupal.org or any kind of external server.
Comment #10
moshe weitzman commentedI didn't try this but it seems reasonable to me.
Comment #11
jonhattanCommitted.
Comment #12
jonhattanComment #13
msonnabaum commentedBackported.