aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/rtorrent.rb1
-rw-r--r--Library/Homebrew/software_spec.rb4
2 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb
index 158cfa2bb..ea047fbe4 100644
--- a/Library/Formula/rtorrent.rb
+++ b/Library/Formula/rtorrent.rb
@@ -6,7 +6,6 @@ class Rtorrent < Formula
sha256 '9e93ca41beb1afe74ad7ad8013e0d53ae3586c9b0e97263d722f721535cc7310'
depends_on 'pkg-config' => :build
- depends_on 'xz' => :build # for libsigc++
depends_on 'libtorrent'
depends_on 'xmlrpc-c' => :optional
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index a3a37902a..1cdfa2e0d 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -61,7 +61,9 @@ class SoftwareSpec
def resource name, &block
if block_given?
raise DuplicateResourceError.new(name) if resource?(name)
- resources[name] = Resource.new(name, &block)
+ res = Resource.new(name, &block)
+ resources[name] = res
+ dependency_collector.add(res)
else
resources.fetch(name) { raise ResourceMissingError.new(owner, name) }
end