aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-06-07 23:40:26 -0500
committerJack Nagel2014-06-07 23:40:28 -0500
commit6d0f0cb195a0e3db68c33a65f09ad482af6ecb95 (patch)
tree71219de786a66a12c4c9e015656e89e341a568d3 /Library/Homebrew/extend
parent07257f2f4861449f3446a06d5eed2b36f4deda65 (diff)
downloadbrew-6d0f0cb195a0e3db68c33a65f09ad482af6ecb95.tar.bz2
metafiles: simplify #copy? further
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index f04c6a810..2a2790c12 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -378,7 +378,7 @@ class Pathname
def install_metafiles from=Pathname.pwd
Pathname(from).children.each do |p|
next if p.directory?
- next unless Metafiles.copy?(p)
+ next unless Metafiles.copy?(p.basename.to_s)
# Some software symlinks these files (see help2man.rb)
filename = p.resolved_path
# Some software links metafiles together, so by the time we iterate to one of them