Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be consistent in letting newer Perl module versions meet the requirement, if not otherwise specified #1338

Merged
merged 1 commit into from Jun 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/fpm/package/cpan.rb
Expand Up @@ -167,12 +167,14 @@ def input(package)
else
# The 'version' string can be something complex like:
# ">= 0, != 1.0, != 1.2"
# If it is not specified explicitly, require the given
# version or newer, as that is all CPAN itself enforces
if version.is_a?(String)
version.split(/\s*,\s*/).each do |v|
if v =~ /\s*[><=]/
self.dependencies << "#{name} #{v}"
else
self.dependencies << "#{name} = #{v}"
self.dependencies << "#{name} >= #{v}"
end
end
else
Expand Down