Browse files

Post install should only run for slimgems

  • Loading branch information...
1 parent 0701aa5 commit 4880644c5c48580c0caddb56ec103310a869ba0f @lsegal lsegal committed Jun 3, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/rubygems/uninstaller.rb
View
1 lib/rubygems/uninstaller.rb
@@ -12,6 +12,7 @@
# Restores RubyGems
Gem.post_uninstall do |uninstaller|
+ next unless uninstaller.spec.name == 'slimgems'
site_lib = File.expand_path(File.join(File.dirname(__FILE__), '..'))
old_lib = File.join(site_lib, 'rubygems-backup')
if File.directory?(old_lib)

0 comments on commit 4880644

Please sign in to comment.