diff options
| -rw-r--r-- | Library/Formula/python.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 6118ad716..d1d058644 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -11,7 +11,8 @@ class Python <Formula end def skip_clean? path - return path == bin+'python' or path == bin+'python2.6' + path == bin+'python' or path == bin+'python2.6' or # if you strip these, it can't load modules + path == lib+'python2.6' # save a lot of time end def install diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 842439a8c..f3dee102a 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -238,7 +238,9 @@ private def clean_dir d d.find do |path| - if not path.file? + if path.directory? + Find.prune if @f.skip_clean? path + elsif not path.file? next elsif path.extname == '.la' and not @f.skip_clean? path # *.la files are stupid |
