Closed (fixed)
Project:
Drush
Component:
Make
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2012 at 22:37 UTC
Updated:
24 Aug 2012 at 19:51 UTC
Jump to comment: Most recent file
The commit from #1343058: Add support for extracting .tar.bz2 files introduced a regression in some simple get downloads in makefiles. I haven't been able to track the cause down just yet, and it might not even be make-specific.
To replicate, use this make file (which contains a snippet from Drupal Commons)
libraries[getid3][download][type] = "get"
libraries[getid3][destination] = "libraries"
libraries[getid3][download][url] = "http://downloads.sourceforge.net/project/getid3/getID3%28%29%201.x/1.9.1/getid3-1.9.1-20110810.zip
?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgetid3%2Ffiles%2FgetID3%2528%2529%25201.x%2F1.9.1%2F&ts=1320871534"
libraries[getid3][directory_name] = "getid3"
; http://drupal.org/node/1336886
libraries[getid3][patch][] = "http://drupal.org/files/getid3-remove-demos-1.9.1.patch"
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drush-1721610.patch | 2.98 KB | jonhattan |
| #2 | drush-tar-regression-1721610-02.patch | 1.34 KB | jhedstrom |
Comments
Comment #1
jhedstromTracked this down to an issue with this logic in
make_file_download_unpack(), which makes any download that doesn't pass in (the non-required)$subtreeparameter get treated like a single file download.Comment #2
jhedstromHere's a start on a fix. The issue is that archives are being extracted directly into the temporary build directory, and in the case of the example in the original post, there is no subdirectory in the archive, so all files are just dumped into the base build directory. I'm actually surprised this hasn't caused an issue with concurrency yet.
Comment #3
jhedstromMarked #1502940: Drush make build fails with can't cd to /tmp/make_tmp... as a duplicate.
Comment #4
jonhattanWith this patch only two tests are failing. I don't see the relation:
Comment #5
jonhattanSame two failures without the patch.
Comment #6
jonhattancommitted.