summaryrefslogtreecommitdiff
path: root/misc/rubygems/patches/patch-al
blob: 9e6d3c1048d4f4db16ba26cdcc10f4b44efa2fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-al,v 1.2 2011/08/12 15:50:44 taca Exp $

Prevent access to HOME when --install-root is used.

--- lib/rubygems/commands/install_command.rb.orig	2011-05-18 23:36:37.000000000 +0000
+++ lib/rubygems/commands/install_command.rb
@@ -148,7 +148,7 @@ to write the specification by hand.  For
           Gem::DocManager.new(gem, options[:rdoc_args]).generate_ri
         end
 
-        Gem::DocManager.update_ri_cache
+        Gem::DocManager.update_ri_cache(options[:install_root])
       end
 
       if options[:generate_rdoc] then