diff options
| author | Chris Hoffman | 2010-08-09 00:30:51 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-09 08:13:17 -0700 |
| commit | 2f3ce485f3702d2ccefd3483ed719e0b36533e6f (patch) | |
| tree | 80b85070cf328dde8b964c727771a370d24d4471 /Library | |
| parent | d85ff377f37898369237eb9c40b265e0ce8dd22b (diff) | |
| download | brew-2f3ce485f3702d2ccefd3483ed719e0b36533e6f.tar.bz2 | |
Fix skip_clean :all to actually skip clean step
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index f860a6c0e..44fb96e69 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -172,7 +172,7 @@ class Formula # skip_clean [bin+"foo", lib+"bar"] # redefining skip_clean? in formulas is now deprecated def skip_clean? path - return true if @skip_clean_all + return true if self.class.skip_clean_all? to_check = path.relative_path_from(prefix).to_s self.class.skip_clean_paths.include? to_check end @@ -532,6 +532,10 @@ EOF end end + def skip_clean_all? + @skip_clean_all + end + def skip_clean_paths @skip_clean_paths or [] end |
