From 0bca7ad9c3d6f1e547b5c8d5b6b244dda97a0c63 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 30 Dec 2015 19:45:41 +0000 Subject: [PATCH] pathname: don't try to calculate symlink size. Closes https://github.com/Homebrew/homebrew/issues/47532 Closes https://github.com/Homebrew/homebrew-dupes/issues/542 --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 0b54fdcf13..a166618ecb 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -30,7 +30,7 @@ module DiskUsageExtension @file_count = 0 @disk_usage = 0 self.find do |f| - if !f.directory? && f.basename.to_s != ".DS_Store" + if !f.directory? && !f.symlink? && f.basename.to_s != ".DS_Store" @file_count += 1 @disk_usage += f.size end