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

j0nathan’s picture

dmitrig01’s picture

Status: Active » Fixed

This should work now, try the latest dev from cvs

Status: Fixed » Closed (fixed)

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

joshuajabbour’s picture

Category: feature » support
Status: Closed (fixed) » Active

Can 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

joshuajabbour’s picture

Category: support » feature
Status: Active » Closed (fixed)

OK, 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:

libraries[jquery_ui_selectmenu_js][download][type] = file
libraries[jquery_ui_selectmenu_js][download][url] = https://github.com/tauren/jquery-ui/raw/selectmenu/ui/jquery.ui.selectmenu.js
libraries[jquery_ui_selectmenu_js][destination] = modules/contrib/jquery_ui/jquery.ui/ui

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...

adrien.felipe’s picture

Status: Closed (fixed) » Fixed

I 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:

libraries[i18n-ascii][download][type] = "file"
libraries[i18n-ascii][download][url] = "http://drupalcode.org/project/pathauto.git/blob_plain/refs/heads/6.x-1.x:/i18n-ascii.example.txt"
libraries[i18n-ascii][destination] = "modules/pathauto"
libraries[i18n-ascii][download][filename] = "i18n-ascii.txt"

I end up with the file in:

sites/all/modules/pathauto/i18n-ascii/i18n-ascii.txt

Does someone know how to get the file in

sites/all/modules/pathauto/i18n-ascii.txt

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..

Status: Fixed » Closed (fixed)

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

fenstrat’s picture

Note there a solution to get rid of this "intermediary directory" in #1143936-8: Downloading a single file breaks if the folder doesn't exist