aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cleanup.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-18 20:19:10 -0500
committerJack Nagel2013-05-18 20:22:24 -0500
commit274a67e6397979e07d9fa0f4c65d85260248a5f5 (patch)
treee1a84c8f61d8260974d6fb96cb5cd283649791ef /Library/Homebrew/cmd/cleanup.rb
parentd3c9b5a21ba15a187932a4270ba3ef68089d5fe0 (diff)
downloadhomebrew-274a67e6397979e07d9fa0f4c65d85260248a5f5.tar.bz2
Stop running "prune" as part of "cleanup"
Rationale: "prune" is slow, does not need to be run as often as "cleanup", and is potentially destructive to things like empty directories that Homebrew did not create. Thus we should let users run `brew prune` only when they wish to, while still being able to use `brew cleanup`. Closes #19863.
Diffstat (limited to 'Library/Homebrew/cmd/cleanup.rb')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index 06003f41a..7295c7d80 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -1,7 +1,6 @@
require 'formula'
require 'keg'
require 'bottles'
-require 'cmd/prune'
module Homebrew extend self
@@ -11,8 +10,6 @@ module Homebrew extend self
if ARGV.named.empty?
cleanup_cellar
cleanup_cache
- Homebrew.prune
-
rm_DS_Store unless ARGV.dry_run?
else
ARGV.formulae.each { |f| cleanup_formula(f) }