aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-24 09:20:56 -0700
committerAdam Vandenberg2012-10-24 09:20:56 -0700
commitfd1fd78a940f032adcddb636534f21bee3085972 (patch)
tree017d991f716fe10c38225527b733a2c87f80dee4 /Library/Homebrew
parentec24f6528dcd81c7fd64a9db3bf58f9112361483 (diff)
downloadbrew-fd1fd78a940f032adcddb636534f21bee3085972.tar.bz2
Cleaner: add (commented-out) debugging information for permission changes
The cleaning step changes permissions on files. Added a commented-out block that will show permission changes when doing verbose builds. Since this output is not generally useful for even normal verbose builds, added as commented-out code (I'm sorry) so that maintainers can uncomment it when this functionality is needed for debugging.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cleaner.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb
index 9907745d5..7fd116a90 100644
--- a/Library/Homebrew/cleaner.rb
+++ b/Library/Homebrew/cleaner.rb
@@ -46,6 +46,13 @@ class Cleaner
else
0444
end
+ # Uncomment this block to show permission changes using brew install -v
+ # if ARGV.verbose?
+ # old_perms = path.stat.mode
+ # if perms != old_perms
+ # puts "Fixing #{path} permissions from #{old_perms.to_s(8)} to #{perms.to_s(8)}"
+ # end
+ # end
path.chmod perms
end