Permalink
Browse files

Updating an RPM now update its gem

	modified:   fedora_rpm.rb
  • Loading branch information...
1 parent a699934 commit ff4e37077bd36e04f9a80a2d6f4a4b0523e50a5b nicolassatragno committed Dec 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/models/fedora_rpm.rb
View
2 app/models/fedora_rpm.rb
@@ -165,7 +165,9 @@ def version_valid?(version)
def retrieve_gem
gem_name = name.gsub(/rubygem-/,'')
+ puts "Retrieving gem #{gem_name} data"
self.ruby_gem = RubyGem.find_or_initialize_by_name(gem_name)
+ self.ruby_gem.update_from_source
self.ruby_gem.has_rpm = true
end

0 comments on commit ff4e370

Please sign in to comment.