Permalink
Browse files

Ensured result is not nil. Fixes #1202.

  • Loading branch information...
1 parent cda8262 commit 33216ad7d7feb6dc67085701ce8a9588f2b0e25a @liger1978 liger1978 committed Oct 9, 2016
Showing with 2 additions and 0 deletions.
  1. +1 −0 CONTRIBUTORS
  2. +1 −0 lib/fpm/package/cpan.rb
View
@@ -20,6 +20,7 @@ llasram
sbuss
Brett Gailey (github: dnbert)
Daniel Haskin (github: djhaskin987)
+Richard Grainger (github: liger1978)
If you have contributed (bug reports, feature requests, help in IRC, blog
posts, code, etc) and aren't listed here, please let me know if you wish to be
@@ -49,6 +49,7 @@ def input(package)
if File.exist?(package)
moduledir = package
+ result = {}
else
result = search(package)
tarball = download(result, version)

0 comments on commit 33216ad

Please sign in to comment.