jberger/Alien-Base — pull request #27 by rsimoes (2013-02-21 03:27:09+00:00)
Title: Lib archive filename should be ascertained from Content-Disposition response header when such a header exists

Consider the following URL:

http://nodeload.github.com/yaml/libyaml/tar.gz/master

When Alien::Base::ModuleBuild downloads from this location, the file is saved as "master." Archive::Extract is then used on the file, but it's not able to determine the file type and croaks. To make Archive::Extract happy, the file name should be what is stipulated in the resource's Content-Disposition response header:

Content-Disposition:attachment; filename=libyaml-master.tar.gz

I may or may not get a chance to write up a patch tonight but figured I'd log the issue either way.