From f4d967e96e3dcc2c035b9b678b3f67bb10e83d03 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 9 Sep 2012 10:01:59 -0700 Subject: [PATCH] allow skip_clean :la --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index c4f8f5f7b9..7ce9bcc15d 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -204,6 +204,7 @@ class Formula # redefining skip_clean? now deprecated def skip_clean? path return true if self.class.skip_clean_all? + return true if path.extname == '.la' and self.class.skip_clean_paths.include? :la to_check = path.relative_path_from(prefix).to_s self.class.skip_clean_paths.include? to_check end @@ -682,7 +683,8 @@ private end @skip_clean_paths ||= [] [paths].flatten.each do |p| - @skip_clean_paths << p.to_s unless @skip_clean_paths.include? p.to_s + p = p.to_s unless p == :la + @skip_clean_paths << p unless @skip_clean_paths.include? p end end