aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-01-09 21:05:27 +0000
committerMike McQuaid2017-01-18 11:23:21 +0000
commitb99fb562753b45e7efec13366b32ddd2f58194f9 (patch)
treee6f62fccf45e2315cf980b627da295295ac06cbb /Library
parent22e8ddc7437990f0aac9873e685f393867ab2a67 (diff)
downloadbrew-b99fb562753b45e7efec13366b32ddd2f58194f9.tar.bz2
tab: store installed_{as_dependency,on_request}.
These are used to determine whether or not a formula’s install was specifically requested by a user and/or pulled in as a dependency.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 746c3dd92..fd59539df 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -25,6 +25,8 @@ class Tab < OpenStruct
"unused_options" => build.unused_options.as_flags,
"tabfile" => formula.prefix.join(FILENAME),
"built_as_bottle" => build.bottle?,
+ "installed_as_dependency" => false,
+ "installed_on_request" => true,
"poured_from_bottle" => false,
"time" => Time.now.to_i,
"source_modified_time" => formula.source_modified_time.to_i,
@@ -172,6 +174,8 @@ class Tab < OpenStruct
"used_options" => [],
"unused_options" => [],
"built_as_bottle" => false,
+ "installed_as_dependency" => false,
+ "installed_on_request" => true,
"poured_from_bottle" => false,
"time" => nil,
"source_modified_time" => 0,
@@ -313,6 +317,8 @@ class Tab < OpenStruct
"unused_options" => unused_options.as_flags,
"built_as_bottle" => built_as_bottle,
"poured_from_bottle" => poured_from_bottle,
+ "installed_as_dependency" => installed_as_dependency,
+ "installed_on_request" => installed_on_request,
"changed_files" => changed_files && changed_files.map(&:to_s),
"time" => time,
"source_modified_time" => source_modified_time.to_i,