From 3822267d2c9981192b909a1fb74d997f536cb579 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 29 Jul 2012 10:19:27 -0300 Subject: [PATCH] Synchronize Keg#link and #unlink counts Keg#link would sometimes count a linked file when doing mkpath, even if the target directory already exists; #unlink would never count it. This meant that "brew ln" and "brew unlink" counts for the same keg could be out of sync with each other. --- Library/Homebrew/extend/pathname.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 946ea0d49f..14d9028802 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -442,6 +442,7 @@ module ObserverPathnameExtension $d+=1 end def mkpath + return if exist? super puts "mkpath #{to_s}" if ARGV.verbose? $d+=1