Permalink
Browse files

fileutils: don't alias copy_metadata on 1.8.2

  • Loading branch information...
1 parent 80b9fdc commit 4102f335043db195360dd840f53a2f485e451a19 @mistydemeo committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/extend/fileutils.rb
View
2 Library/Homebrew/extend/fileutils.rb
@@ -43,7 +43,7 @@ def mkdir name, &block
# The monkey-patched method here is copied directly from upstream fix.
if RUBY_VERSION < "1.9.3" or RUBY_PATCHLEVEL < 195
class Entry_
- alias_method :old_copy_metadata, :copy_metadata
+ alias_method :old_copy_metadata, :copy_metadata if RUBY_VERSION > "1.8.2"
def copy_metadata(path)
st = lstat()
if !st.symlink?

0 comments on commit 4102f33

Please sign in to comment.