I was able to replicate this on Ubuntu 8.04, but not on Mac OS 10.6. Discovered using 5.1 release, replicated on 6.0-dev.

drush_mime_content_type detected the file type as application/x-zip, but make_download_file_unpack does not have a case for it.

./drush/drush make --no-core test.make test
jquery.ui downloaded from http://jquery-ui.googlecode.com/files/jquery-ui-1.7.3.zip. [ok]
ls -la test/sites/all/libraries/jquery.ui

Expected result: contents of jQuery UI
Actual result: jquery-ui-1.7.3.zip

test.make:

core = 7.x
api = 2

; LIBRARIES

libraries[jquery.ui][download][type] = "file"
libraries[jquery.ui][download][url] = http://jquery-ui.googlecode.com/files/jquery-ui-1.7.3.zip
libraries[jquery.ui][directory_name] = "jquery.ui"
CommentFileSizeAuthor
#1 drush_zip_mime-1539672.patch556 bytesfluxsauce

Comments

fluxsauce’s picture

Status: Active » Needs review
StatusFileSize
new556 bytes

The patch.

moshe weitzman’s picture

jhedstrom’s picture

Status: Needs review » Fixed

I committed #1 in the mean time as it is quite a simple fix (see f6cd7b0). I'll see if I can make progress on #1457798: Use drush_tarball_extract() and drush filesystem commands during make.

Status: Fixed » Closed (fixed)

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