Hi,

Unless I'm mistaken, Drush Make doesn't seem to be able to download files directly in the libraries directory (or I just don't know how to do it ;-)).
Would it be possible to reorganize files in sub-directories to allow scripted installation of this module?

Comments

blainelang’s picture

Doing a quick look at Drush Make, it appears there is an open issue for this: http://drupal.org/node/542940

One of the reasons, I thought we want to use /libraries is to allow other modules to share the same libraries. In filedepot's case, they may not be but re-used but possibly the jquery one could be.

simon georges’s picture

It's totally understandable to use /libraries, but using libraries/html_encoder and librariers/jquery.blockui would allow us to download them with Drush Make using for example

libraries[html_encoder][download][type] = "file"
libraries[html_encoder][download][url] = "http://www.strictly-software.com/scripts/downloads/encoder.js"
libraries[html_encoder][download][filename] = "html_encoder.js"
libraries[jquery.blockui][download][type] = "file"
libraries[jquery.blockui][download][url] = "http://malsup.github.com/jquery.blockUI.js"
libraries[jquery.blockui][download][filename] = "jquery.blockui.js"

(the issue is with having the files directly at the root of /libraries)

blainelang’s picture

I see, well this sounds perfectly reasonable.

Only issue I see is that making this change will break anyone's site if they upgrade or I need to test for both the base directory or the subdirectory and I'd prefer to not do that. We are still in beta so is moving the libraries an working option? (me wonders)

simon georges’s picture

Right now, it forces me to a gross "hack" in my installation profile (a system copy of the file into the right directory), so that would really help, but I understand your concerns about moving the file... Does anybody else have an opinion, or need this?

_timpatrick’s picture

Category: support » feature