Skip to content

Commit

Permalink
Move notification to universal place.
Browse files Browse the repository at this point in the history
  • Loading branch information
voxik committed Oct 26, 2012
1 parent 6aa5057 commit dc0fbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/rubygems/nice_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Installer
module Nice
require 'rubygems/nice_install/distro_guesser'

include Gem::UserInteraction

def build_extensions
super
rescue ExtensionBuildError => e
Expand All @@ -29,6 +31,7 @@ def install_platform_dependencies
end

unless missing_deps.empty?
say "Installing native dependencies for Gem '#{spec.name}': #{missing_deps.join ' '}"
unless ext_installer.install_ext_dependencies_for(spec.name, missing_deps)
raise Gem::InstallError, "Failed to install native dependencies for '#{spec.name}'."
end
Expand Down
1 change: 0 additions & 1 deletion lib/rubygems/nice_install/fedora_ext_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def ext_dependency_present? dep_name
end

def install_ext_dependencies_for gem_name, deps
say "Installing native dependencies for Gem '#{gem_name}': #{deps.join ' '}"
install_using_packagekit deps
end

Expand Down

0 comments on commit dc0fbf3

Please sign in to comment.