Closed (fixed)
Project:
Drush
Component:
Make
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2011 at 17:14 UTC
Updated:
4 Mar 2012 at 22:50 UTC
Jump to comment: Most recent file
Hi,
I am trying to download the i18n-ascii.example.txt into the modules/ folder with a makefile.
But no matter how I do it, I always end up with the file in a subfolder, and not even the pathauto one.
This is my last try:
; Extra features
;---------------
; Pathauto i18n-ascii.txt file
; Dependencies: pathauto 6.x-1.5
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"
libraries[i18n-ascii][download][directory_name] = "pathauto"
libraries[i18n-ascii][download][filename] = "i18n-ascii.txt"
I can see there are several requests concerning the download of single files and archive subtrees. But they do not seem to be commited yet?
Is it possible to do what I'm looking for at this point?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | singlefile.patch | 954 bytes | robloach |
| #2 | drushmake-singlefile.patch | 2.95 KB | robloach |
Comments
Comment #1
adrien.felipe commentedStill no way to download a single file without having it on the array key folder?
Comment #2
robloachFound that the file won't download if the folder didn't exist. Should apply to the 3.x branch too.
Comment #3
robloachFixing the title.
Comment #4
adrien.felipe commentedHi Rob,
Actually I am not sure about that
For me it's the oposite:
if I try to put it in pathauto folder the drush make fails returning "pathauto folder already exits"
I mean this way
libraries[pathauto][download][url] = "...i18n-ascii.example.txt"But if I try the way as posted in #1, I end up with the file in:
sites/all/modules/pathauto/i18n-ascii/i18n-ascii.txt
And I don't want it to be in a i18n-ascii folder
Comment #5
robloachMaybe try
libraries[i18n-ascii][destination]?Comment #6
adrien.felipe commentedI have tried both:
and
libraries[i18n-ascii][destination] = "modules/pathauto"Always get the i18n-ascii folder. And I think last example is what you are saying (folder does not exist)
I don't remember.
Actually I have tried all combinations I could imagine. Can't get this to work.
Comment #7
helmo commented[ Powered by #1115636: Issue Macros and Templates - Drush Make]
Drush make is being merged into drush core (discussed in issue:#1310130: Put drush make in drush core)
This means that the issue queue is also moving. The drush queue has a component 'Make' especially for drush_make.
More information will be posted on the drush_make and drush project pages.
Comment #8
helmo commentedThe following recipe works both with drush_make 2.3 and the HEAD version in drush core.
Comment #9
adrien.felipe commentedGreat! it did work indeed.
Thank you
Comment #10
robloachWhen Drush Make attempts to download a single file, it fails because the destination folder doesn't exist yet. The attached patch fixes it.
Comment #11
jhedstromCommitted #10. Thanks!