aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-09-11 14:22:56 -0500
committerJack Nagel2012-09-11 14:29:33 -0500
commitd5299f4946bf33959d500ff0a79d6ca769922b49 (patch)
tree8ef14bebceeab3a717d11ad5ec568dae29106633 /Library/Homebrew/cmd
parente909b54c9697e44d984cd642c866edbf240105da (diff)
downloadbrew-d5299f4946bf33959d500ff0a79d6ca769922b49.tar.bz2
cleanup: allow --force to remove keg-only brews again
Fixes Homebrew/homebrew#14840. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index 6f8caa584..7ba589876 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -76,7 +76,7 @@ class Formula
# introduced the opt symlink, and built against that instead. So provided
# no brew exists that was built against an old-style keg-only keg, we can
# remove it.
- if not keg_only?
+ if not keg_only? or ARGV.force?
true
elsif opt_prefix.directory?
# SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks