aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cleaner.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-07-20 09:51:11 -0700
committerAdam Vandenberg2014-07-20 12:17:06 -0700
commit557f887f24254a1423ca43f6111047c837aa364a (patch)
tree36c533958e91bf0da539427773188def2a88264a /Library/Homebrew/cleaner.rb
parentb0138e447d235ae2a9d462bcf6547cec59fe810b (diff)
downloadbrew-557f887f24254a1423ca43f6111047c837aa364a.tar.bz2
add clarifying comments
Diffstat (limited to 'Library/Homebrew/cleaner.rb')
-rw-r--r--Library/Homebrew/cleaner.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb
index 30cf1c0f5..e80cdfe92 100644
--- a/Library/Homebrew/cleaner.rb
+++ b/Library/Homebrew/cleaner.rb
@@ -67,6 +67,12 @@ class Cleaner
# Clean a top-level (bin, sbin, lib) directory, recursively, by fixing file
# permissions and removing .la files, unless the files (or parent
# directories) are protected by skip_clean.
+ #
+ # bin and sbin should not have any subdirectories; if either do that is
+ # caught as an audit warning
+ #
+ # lib may have a large directory tree (see Erlang for instance), and
+ # clean_dir applies cleaning rules to the entire tree
def clean_dir d
d.find do |path|
path.extend(ObserverPathnameExtension)