From 277f3d3c30e72ce1eaefe8817043a643872f53bf Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 18 May 2013 20:19:10 -0500 Subject: [PATCH] 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 Homebrew/homebrew#19863. --- Library/Homebrew/cmd/cleanup.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 06003f41a6..7295c7d803 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) }