Skip to content

Commit

Permalink
Merge pull request jordansissel#284 from vStone/master
Browse files Browse the repository at this point in the history
We should also use rubygem(name) for the dependencies
  • Loading branch information
jordansissel committed Nov 19, 2012
2 parents 4161d6b + d5669db commit 657a5eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/fpm/package/rpm.rb
Expand Up @@ -121,6 +121,15 @@ def converted_from(origin)
provides
end
end
self.dependencies = self.dependencies.collect do |dependency|
first, remainder = dependency.split("-", 2)
if first == "rubygem"
name, remainder = remainder.split(" ", 2)
"rubygem(#{name})#{remainder ? " #{remainder}" : ""}"
else
dependency
end
end
#self.provides << "rubygem(#{self.name})"
end
end # def converted
Expand Down

0 comments on commit 657a5eb

Please sign in to comment.