aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-03-20 14:27:07 -0500
committerMisty De Meo2012-03-20 14:33:46 -0500
commitbc7469c819e18afa07f4c719d895e3c3c80f8c3f (patch)
tree74b92916165b6096d3e34c156f401bd6f4fcbf10 /Library
parentf8861daeb9df15f37390b86caab2397813062246 (diff)
downloadbrew-bc7469c819e18afa07f4c719d895e3c3c80f8c3f.tar.bz2
Fix inappropriate linking of info files
share/info files were always being linked if they existed, regardless of whether the user had HOMEBREW_KEEP_INFO set. This primarily affects users with software built before 9610ff2e9e06931693f49d4377ee26c0e664c547. This also fixes a bug in Keg#link_dir, in which a file would always be linked if no argument was passed.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 6aca9f684..78335b2f7 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -75,7 +75,7 @@ class Keg < Pathname
link_dir('share') do |path|
case path.to_s
when 'locale/locale.alias' then :skip_file
- when INFOFILE_RX then :info if ENV['HOMEBREW_KEEP_INFO']
+ when INFOFILE_RX then ENV['HOMEBREW_KEEP_INFO'] ? :info : :skip_file
when LOCALEDIR_RX then :mkpath
when *share_mkpaths then :mkpath
else :link
@@ -146,7 +146,7 @@ protected
Find.prune if File.basename(src) == '.DS_Store'
case yield src.relative_path_from(root)
- when :skip_file
+ when :skip_file, nil
Find.prune
when :info
make_relative_symlink dst, src