gist-logs: show the formula origin for non core-formula

Closes Homebrew/homebrew#36730.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-02-11 17:29:56 +08:00 committed by Mike McQuaid
parent f640cbac9e
commit 4d17d4c8db

View File

@ -12,6 +12,14 @@ module Homebrew
Homebrew.dump_verbose_config(s)
files["config.out"] = { :content => s.string }
files["doctor.out"] = { :content => `brew doctor 2>&1` }
unless f.core_formula?
tap = <<-EOS.undent
Formula: #{f.name}
Tap: #{f.tap}
Path: #{f.path}
EOS
files["tap.out"] = { :content => tap }
end
url = create_gist(files)