; For example
libraries[swfupload][download][type] = "get"
libraries[swfupload][download][url] = "http://swfupload.googlecode.com/files/SWFUpload%20v2.2.0.1%20Core.zip"

Getting error:
Could not retrieve package information for /tmp/drush_make_tmp_1264512126/SWFUpload%20v2.2.0.1%20Core.zip

Reason awk '{print $4;}', see line 113 and 132 in drush_make.download.inc

Because unzip -l 'SWFUpload%20v2.2.0.1%20Core.zip' will result in

      0  2009-03-27 11:58   SWFUpload v2.2.0.1 Core/
19121  2009-03-30 10:38   SWFUpload v2.2.0.1 Core/Core Changelog.txt
...

and therefore unzip -l 'SWFUpload%20v2.2.0.1%20Core.zip' | awk '{print $4}' will result in

SWFUpload
SWFUpload
SWFUpload
...

i.e. SWFUpload treated as 4th column.

CommentFileSizeAuthor
#3 drush_make_uzip_noawk.patch1.13 KBjmiccolis

Comments

dmitrig01’s picture

Good point. What would the best way to go about fixing this be?

cyberwolf’s picture

Subscribing.

jmiccolis’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

Attached is a patch that replaces the use of `awk '{print $4;}'` with a more rigorous regular expression so that everything is captured properly. Testing is appreciated.

yhahn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

pbuyle’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

The fix solved the issue for unpack_zip, but unpack_gz (now unpackGz) has the same flaw preventing Drush Make to handle tgz/gz files with space in their names.

PS: Marked as critical because on Windows, temporary files are stored in "C:\Document and Settings\$USER\drush_make_temp_$random" which prevent Drush Make to do anything.

dmitrig01’s picture

is this fixed in the latest beta?

dmitrig01’s picture

(it isn't)

dmitrig01’s picture

Status: Active » Fixed

w00t

Status: Fixed » Closed (fixed)
Issue tags: -space character

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