diff options
| author | Jack Nagel | 2013-09-23 21:39:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-23 21:39:33 -0500 |
| commit | c464c7549ff591997aff3c624975acedaab3cdb1 (patch) | |
| tree | b9cc8543b0c8b5543984f4dced17da0e704e4048 /Library/Homebrew/cmd | |
| parent | 567f3448c9037510b262eab66dd6842a7c7ce438 (diff) | |
| download | brew-c464c7549ff591997aff3c624975acedaab3cdb1.tar.bz2 | |
Clean up SoftwareSpec and Resource initializers
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/create.rb | 4 |
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 |
