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.
This commit is contained in:
parent
ec24f6528d
commit
fd1fd78a94
@ -46,6 +46,13 @@ class Cleaner
|
|||||||
else
|
else
|
||||||
0444
|
0444
|
||||||
end
|
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
|
path.chmod perms
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user