Closed (fixed)
Project:
Drush Make
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Mar 2011 at 18:51 UTC
Updated:
27 Jul 2011 at 20:51 UTC
Jump to comment: Most recent file
We have crazy makefiles here that include each other, pretty crazy.
Take this makefile for example:
http://git.koumbit.net/?p=drupal/makefiles.git;a=blob_plain;f=pressflow/...
When I run it with 2.2, I get this:
aegir@hostmaster:~/makefiles$ drush make pressflow/pressflow-6-core.make foo
pressflow downloaded from http://files.pressflow.org/pressflow-6.20.97.tar.gz. [ok]
sh: /tmp/drush_make_tmp_1301511047/patches/robots.txt-drupal-6.20.patch: Aucun fichier ou répertoire de ce type
pressflow patched with robots.txt-drupal-6.20.patch. [error]
unlink(/tmp/drush_make_tmp_1301511047/patches/robots.txt-drupal-6.20.patch): No such file or directory drush.inc:597 [warning]
sh: /tmp/drush_make_tmp_1301511047/patches/user.module-redmine-2692-5.patch: Aucun fichier ou répertoire de ce type
pressflow patched with user.module-redmine-2692-5.patch. [error]
unlink(/tmp/drush_make_tmp_1301511047/patches/user.module-redmine-2692-5.patch): No such file or directory drush.inc:597 [warning]
It seems like the problem is the / in the URL - drush make then expects the file to be untarred in a subdirectory, which is kind of odd if you ask me.
This is a regression, as this works in 2.0-beta11.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1111050_tolerate_content-disposition.patch | 518 bytes | anarcat |
Comments
Comment #1
anarcat commentedIf I change the second patch to this:
... and comment out the first one, the makefile succeeds.
There's probably something in that funky url that doesn't get escaped properly or something...
Comment #2
anarcat commentedOkay, I tracked the problem to _drush_make_download_file(). I suspect the problem is with the content-disposition header sent by some sites, especially gitweb.
Trivial patch attached, against branch 2.x - let me know if this should be rolled against 3.x.
Comment #3
j0nathan commentedSubscribing.
EDIT:
Patch in comment #2 resolved my issue with:
drush 4.4
drush make 2.2
Thanks anarcat
Comment #4
anarcat commentedWe've been running this in production for a while now...
Comment #5
anarcat commentedPushed as ae3d6b9 in 3.x and e25e480 in 2.x.