From fb40cfbd719ccba86c37d13389b8a9b2407ef32a Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 11 Jan 2012 12:42:20 -0200 Subject: [PATCH] Fix dangling symlink vendor/rails if necessary --- config/boot.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/config/boot.rb b/config/boot.rb index 4b95b34..aead587 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -110,6 +110,7 @@ def install_debian_rails local_rails = File.dirname(__FILE__) + '/../vendor/rails' debian_rails = ['/usr/share/rails-ruby1.8', '/usr/lib/ruby/vendor_ruby/rails'].find { |d| File.exists?(d) } if !File.exist?(local_rails) && File.exists?(debian_rails) + File.delete(local_rails) if File.symlink?(local_rails) # remove dangling symlink puts "I: Installing Debian-installed Rails from /usr/share/rails into vendor/rails." recommended_rails_version = Rails::GemBoot.gem_version puts "I: Please note that the recommended Rails version is #{recommended_rails_version}, and that other versions might not work" -- libgit2 0.21.2