aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-09-23 21:39:19 -0500
committerJack Nagel2013-09-23 21:39:33 -0500
commitc464c7549ff591997aff3c624975acedaab3cdb1 (patch)
treeb9cc8543b0c8b5543984f4dced17da0e704e4048 /Library/Homebrew/cmd
parent567f3448c9037510b262eab66dd6842a7c7ce438 (diff)
downloadbrew-c464c7549ff591997aff3c624975acedaab3cdb1.tar.bz2
Clean up SoftwareSpec and Resource initializers
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/create.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index 88e75de38..70b060871 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -104,8 +104,8 @@ class FormulaCreator
# XXX: why is "and version" here?
unless ARGV.include? "--no-fetch" and version
- r = Resource.new(:default, url, version)
- r.owner = self
+ r = Resource.new
+ r.url, r.version, r.owner = url, version, self
@sha1 = r.fetch.sha1 if r.download_strategy == CurlDownloadStrategy
end