aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-09 10:01:59 -0700
committerAdam Vandenberg2012-09-09 13:01:56 -0700
commitf4d967e96e3dcc2c035b9b678b3f67bb10e83d03 (patch)
treeccfd0bac73f9329f535eb9fbd657f6acc60c53f9 /Library
parentfae4cbd9e88735bfb8a8c5bec533ec573ec2452b (diff)
downloadbrew-f4d967e96e3dcc2c035b9b678b3f67bb10e83d03.tar.bz2
allow skip_clean :la
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c4f8f5f7b..7ce9bcc15 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