diff options
| author | Jack Nagel | 2014-10-15 00:52:57 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-10-15 01:30:56 -0500 | 
| commit | 1d9db84b604e44c153926e27c4c6dfdc74d480e4 (patch) | |
| tree | 87adfbda9d69483416e8c382b5925d403ae534b4 | |
| parent | 68a23e1765b02e12d35e04af4a78ea8ebef5ead9 (diff) | |
| download | homebrew-1d9db84b604e44c153926e27c4c6dfdc74d480e4.tar.bz2 | |
Hide install receipt key names
| -rw-r--r-- | Library/Homebrew/cmd/reinstall.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/upgrade.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/tab.rb | 4 | 
3 files changed, 6 insertions, 4 deletions
| diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 113607236..b72fbad09 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -20,8 +20,7 @@ module Homebrew      fi = FormulaInstaller.new(f)      fi.options             = options -    fi.build_bottle        = ARGV.build_bottle? -    fi.build_bottle      ||= tab.built_as_bottle && !tab.poured_from_bottle +    fi.build_bottle        = ARGV.build_bottle? || tab.build_bottle?      fi.build_from_source   = ARGV.build_from_source?      fi.force_bottle        = ARGV.force_bottle?      fi.verbose             = ARGV.verbose? diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 8f1b7fabe..c5b875d31 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -53,8 +53,7 @@ module Homebrew      fi = FormulaInstaller.new(f)      fi.options             = tab.used_options -    fi.build_bottle        = ARGV.build_bottle? -    fi.build_bottle      ||= tab.built_as_bottle && !tab.poured_from_bottle +    fi.build_bottle        = ARGV.build_bottle? || tab.build_bottle?      fi.build_from_source   = ARGV.build_from_source?      fi.verbose             = ARGV.verbose?      fi.verbose           &&= :quieter if ARGV.quieter? diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index ea619d57c..96639fb20 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -121,6 +121,10 @@ class Tab < OpenStruct      CxxStdlib.create(lib, cc.to_sym)    end +  def build_bottle? +    built_as_bottle && !poured_from_bottle +  end +    def to_json      Utils::JSON.dump({        :used_options => used_options.as_flags, | 
