aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-07-20 09:51:11 -0700
committerAdam Vandenberg2014-07-20 12:17:06 -0700
commit08a1f34b30b16a3b984954fa6f2e59861433a379 (patch)
tree67e44de74046d0511e783f766c2e218f0ac2d2e5 /Library
parent20d790c92941d1957654e43dabfc1fd55746b775 (diff)
downloadhomebrew-08a1f34b30b16a3b984954fa6f2e59861433a379.tar.bz2
add clarifying comments
Diffstat (limited to 'Library')
-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)