Closed (fixed)
Project:
Drush Make
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2010 at 19:55 UTC
Updated:
23 Mar 2012 at 16:52 UTC
This is the scenario: I am building a .make file that downloads all necessary modules and libraries to get flowplayer with swftools up and running.
To do so, one needs to download some single .swf files from the Flowplayer site.
As far as I can see, drush make can only download files if it are archives, that are uncompressed after download. I do not find a switch to suppress this mechanism for single components.
So the download fails for those .swf files.
Or am I missing out something?
Comments
Comment #1
j0nathan commentedMaybe related to #763532: DrushMakeDownload_Get get filename from URL
Comment #2
dmitrig01 commentedThis should work now, try the latest dev from cvs
Comment #4
joshuajabbour commentedCan you please detail here how this should work? I cannot get it to work, and from what I can tell by looking at the code, there are still assumptions that won't allow a single file (like sending all downloaded files to drush_make_download_file_unpack, which logs an error if it's not an archive)
I'm trying to download a single javascript file, which I need to live at "modules/contrib/jquery_ui/jquery.ui/ui/jquery.ui.selectmenu.js".
Here is the code I've tried, but it only results in an empty folder at "modules/contrib/jquery_ui/jquery.ui/ui/jquery_ui_selectmenu_js":
libraries[jquery_ui_selectmenu_js][download][type] = get
libraries[jquery_ui_selectmenu_js][download][url] = https://github.com/fnagel/jquery-ui/blob/selectmenu/ui/jquery.ui.selectm...
libraries[jquery_ui_selectmenu_js][destination] = modules/contrib/jquery_ui/jquery.ui/ui
Comment #5
joshuajabbour commentedOK, this does somewhat work (I was using an old version of drush make, and didn't know how to tell. fyi, use `drush make --version`).
Here's how to use it:
However, it really ultimately fails as it forces an intermediary dir named after the project between the destination and file. But I suppose that should be a separate issue...
Comment #6
adrien.felipe commentedI need the same thing, and I have tried all combinations I could imagine. None would work, I also have this intermediary directory as you say in #5.
I have drush make 2.3 and this is what I use:
I end up with the file in:
Does someone know how to get the file in
For what I need the best option would be to make drush duplicate i18n-ascii.example.txt from the downloaded project pathauto and rename it to i18n-ascii.txt but I don't think that's possible..
Comment #8
fenstratNote there a solution to get rid of this "intermediary directory" in #1143936-8: Downloading a single file breaks if the folder doesn't exist