diff options
| author | Adam Vandenberg | 2012-09-09 10:01:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-09 13:01:56 -0700 |
| commit | c731ce26d83b4a72e708f7cd684527582de4eb81 (patch) | |
| tree | 2b134045c330f8c30c36791bae227f5d6117ed7c /Library | |
| parent | bf2e6023d1bac08739b4562e19e07db448f0aba3 (diff) | |
| download | homebrew-c731ce26d83b4a72e708f7cd684527582de4eb81.tar.bz2 | |
allow skip_clean :la
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
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 |
