aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Belkin2018-02-19 07:21:34 +0000
committerMaxim Belkin2018-02-19 07:21:34 +0000
commitb084a2581f32fcbc6fbdf081ffce9a6c53f66ff6 (patch)
treeb7f3333a72c9ea502e66ef7d22677b168583ec5f
parent3dabebbd1643971d1904749530fe6ba73ec38817 (diff)
downloadbrew-b084a2581f32fcbc6fbdf081ffce9a6c53f66ff6.tar.bz2
Making zip and bzip2 dependecies conditional
Here, we are adding `unless which("zip")` and `unless which("bzip2")` and, thus, make `zip` and `bzip2` dependencies conditional.
-rw-r--r--Library/Homebrew/dependency_collector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index 4b8f9e872..bd71d61b0 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -73,11 +73,11 @@ class DependencyCollector
def ld64_dep_if_needed(*); end
def zip_dep_if_needed(tags)
- Dependency.new("zip", tags)
+ Dependency.new("zip", tags) unless which("zip")
end
def bzip2_dep_if_needed(tags)
- Dependency.new("bzip2", tags)
+ Dependency.new("bzip2", tags) unless which("bzip2")
end
def self.tar_needs_xz_dependency?