Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Patch download and extraction of absolute HTTP URIs #116

Merged
merged 3 commits into from Apr 20, 2015

Conversation

polettix
Copy link
Contributor

Real-world fetching of an absolute HTTP URI (as you find with zlib for example) leads to an error because the expander is passed the URI instead of the bare name of the downloaded file:

  • the patch to t/http.t shows this problem
  • the patch to lib/Alien/Base/ModuleBuild/File.pm solves the problem

The third commit is an optional cosmetic change that tidies get() up a bit. In particular, the return value at the end has been changed to make it consistent with the return at line 39.

Thanks a lot for Alien::Base!!!

Real-world fetching of an absolute HTTP URI (as you find with zlib
for example) leads to an error because the expander is passed the
URI instead of the bare name of the downloaded file.

This test patch shows this behaviour.
Real-world fetching of an absolute HTTP URI (as you find with zlib
for example) leads to an error because the expander is passed the
URI instead of the bare name of the downloaded file.

This test patch corrects this behaviour.
Minor cosmetics to the get() method:

* removed extra empty line
* removed stray spaces in empty line
* made closing return value consistent with return on line 39
@zmughal
Copy link
Member

zmughal commented Apr 19, 2015

This looks good to me! @polettix++

My vote is:

Merge: Aye

@plicease
Copy link
Contributor

Agree. aye

@jberger
Copy link
Member

jberger commented Apr 20, 2015

I'm having a hard time remembering now if the original behavior was an oversight or by design. What I can imagine is a file whose version comes from its uri path not just its name. For example http://site.com/releases/v1.2/release.tar.gz. Assuming that kind of path is not impacted then "aye" and thanks for contributing!

@plicease plicease merged commit 3c6e4dc into Perl5-Alien:master Apr 20, 2015
@plicease
Copy link
Contributor

sent to CPAN as 0.015_03. I expect to have a production version of this some time this week, assuming nothing bad turns up in cpantesters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants