Permalink
Browse files

don't replace dashes

  • Loading branch information...
1 parent 0e78dc1 commit e7348d956aaa45bc6c58efba6b2f4782725133f7 Bulat Shakirzyanov committed Dec 17, 2013
Showing with 0 additions and 13 deletions.
  1. +0 −13 lib/fpm/package/rpm.rb
View
@@ -223,19 +223,6 @@ def converted_from(origin)
dep_ok
end
- # Convert any dashes in version strings to underscores.
- self.dependencies = self.dependencies.collect do |dep|
- name, op, version = dep.split(/\s+/)
- if !version.nil? and version.include?("-")
- @logger.warn("Dependency package '#{name}' version '#{version}' " \
- "includes dashes, converting to underscores")
- version = version.gsub(/-/, "_")
- "#{name} #{op} #{version}"
- else
- dep
- end
- end
-
# if --ignore-iteration-in-dependencies is true convert foo = X, to
# foo >= X , foo < X+1
if self.attributes[:rpm_ignore_iteration_in_dependencies?]

0 comments on commit e7348d9

Please sign in to comment.