Skip to content

Commit

Permalink
Post install should only run for slimgems
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jun 3, 2011
1 parent 0701aa5 commit 4880644
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubygems/uninstaller.rb
Expand Up @@ -12,6 +12,7 @@


# Restores RubyGems # Restores RubyGems
Gem.post_uninstall do |uninstaller| Gem.post_uninstall do |uninstaller|
next unless uninstaller.spec.name == 'slimgems'
site_lib = File.expand_path(File.join(File.dirname(__FILE__), '..')) site_lib = File.expand_path(File.join(File.dirname(__FILE__), '..'))
old_lib = File.join(site_lib, 'rubygems-backup') old_lib = File.join(site_lib, 'rubygems-backup')
if File.directory?(old_lib) if File.directory?(old_lib)
Expand Down

0 comments on commit 4880644

Please sign in to comment.