aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-10-11 09:58:45 +0100
committerGitHub2016-10-11 09:58:45 +0100
commit04ccba54896b249f6a041465588e8d371a82d4bb (patch)
treef51d953c68a4b600f4056ea4d7131eee8715bcea /Library
parent6be6ce33e0e5967f8e67801875bff6ab3f99b1ef (diff)
parentcd615acd5f6feec01283ced45ecb7ee16bedcba3 (diff)
downloadbrew-04ccba54896b249f6a041465588e8d371a82d4bb.tar.bz2
Merge pull request #1260 from alyssais/tab_dependency_default
tab: don't interpret unknown deps as no deps
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb1
-rw-r--r--Library/Homebrew/test/test_tab.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 379f2e8a4..06ee1693f 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -60,7 +60,6 @@ class Tab < OpenStruct
def self.from_file_content(content, path)
attributes = Utils::JSON.load(content)
attributes["tabfile"] = path
- attributes["runtime_dependencies"] ||= []
attributes["source_modified_time"] ||= 0
attributes["source"] ||= {}
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb
index 18d0f49b1..e41f76e27 100644
--- a/Library/Homebrew/test/test_tab.rb
+++ b/Library/Homebrew/test/test_tab.rb
@@ -97,7 +97,7 @@ class TabTests < Homebrew::TestCase
assert_equal TEST_SHA1, tab.HEAD
assert_equal :clang, tab.cxxstdlib.compiler
assert_equal :libcxx, tab.cxxstdlib.type
- assert_empty tab.runtime_dependencies
+ assert_nil tab.runtime_dependencies
end
def test_from_file