From 4a5b65c9f558aa03f8e7a130fb703aae4d4317e2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 1 Nov 2013 19:04:04 -0500 Subject: [PATCH] Remove "-c1" one-line config This is broken and nobody noticed, so remove it. Closes Homebrew/homebrew#23878. --- Library/Homebrew/cmd/--config.rb | 19 +------------------ Library/brew.rb | 8 ++------ 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb index cb1409b501..a6df1a2c67 100644 --- a/Library/Homebrew/cmd/--config.rb +++ b/Library/Homebrew/cmd/--config.rb @@ -2,11 +2,7 @@ require 'hardware' module Homebrew extend self def __config - if ARGV.first == '-1' - dump_c1 - else - dump_verbose_config - end + dump_verbose_config end def llvm @@ -150,17 +146,4 @@ module Homebrew extend self puts "Python: #{describe_python}" puts "Ruby: #{describe_ruby}" end - - def dump_c1 - print "#{HOMEBREW_PREFIX}-#{HOMEBREW_VERSION} " - print MACOS_FULL_VERSION - print "-#{kernel}" if MacOS.version < :lion - print ' ' - print MacOS::Xcode.prefix unless MacOS::Xcode.default_prefix? - print "#{MacOS::Xcode.version}" - print "-noclt" unless MacOS::CLT.installed? - print " clang-#{clang_build} llvm-#{llvm} " - print "#{MacOS::XQuartz.prefix}-#{MacOS::XQuartz.version}" if MacOS::XQuartz.prefix - puts - end end diff --git a/Library/brew.rb b/Library/brew.rb index dad310e849..4fa22b4ee0 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -70,17 +70,13 @@ begin 'abv' => 'info', 'dr' => 'doctor', '--repo' => '--repository', - 'environment' => '--env' # same as gem + 'environment' => '--env', + '-c1' => '--config', } cmd = ARGV.shift cmd = aliases[cmd] if aliases[cmd] - if cmd == '-c1' # Shortcut for one line of configuration - cmd = '--config' - ARGV.unshift('-1') - end - sudo_check = Set.new %w[ install link pin unpin upgrade ] if sudo_check.include? cmd