Skip to content

Commit

Permalink
Merge pull request #1257 from Homebrew/no-rm_const
Browse files Browse the repository at this point in the history
Replace removable constants with overridable methods
  • Loading branch information
dduugg authored Oct 8, 2024
2 parents 67f74e9 + 122c3ba commit 307e6d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/test_cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def cleanup_shared
paths_to_delete = []

info_header "Determining #{HOMEBREW_PREFIX} files to purge..."
Keg::MUST_BE_WRITABLE_DIRECTORIES.each(&:mkpath)
Keg.must_be_writable_directories.each(&:mkpath)
Pathname.glob("#{HOMEBREW_PREFIX}/**/*", File::FNM_DOTMATCH).each do |path|
next if Keg::MUST_BE_WRITABLE_DIRECTORIES.include?(path)
next if Keg.must_be_writable_directories.include?(path)
next if path == HOMEBREW_PREFIX/"bin/brew"
next if path == HOMEBREW_PREFIX/"var"
next if path == HOMEBREW_PREFIX/"var/homebrew"
Expand Down
7 changes: 0 additions & 7 deletions lib/test_cleanup.rbi

This file was deleted.

0 comments on commit 307e6d8

Please sign in to comment.