From 8e8875f8f41d22cf03f7d14fdcd494bd9a8aef05 Mon Sep 17 00:00:00 2001 From: Michael Dippery Date: Tue, 12 Oct 2010 15:24:00 -0400 Subject: [PATCH] Ignore .DS_Store files when listing keg contents Signed-off-by: Adam Vandenberg --- Library/Homebrew/brew.h.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index ff45a4ad83..4f9601f26e 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -499,7 +499,7 @@ class PrettyListing else print_dir pn end - elsif not FORMULA_META_FILES.include? pn.basename.to_s + elsif not (FORMULA_META_FILES.include? pn.basename.to_s or pn.basename.to_s == '.DS_Store') puts pn end end @@ -519,7 +519,7 @@ private puts pn other = 'other ' else - remaining_root_files << pn + remaining_root_files << pn unless pn.basename.to_s == '.DS_Store' end end