aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/patch.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-15 22:40:14 -0500
committerJack Nagel2014-03-15 22:40:14 -0500
commitc84c8b1d0e5cd9759c32ea220359a15e2ba4ad5e (patch)
treed8882e105dd281fac2562f4571e0708684d9db53 /Library/Homebrew/patch.rb
parente0216d95af90f485d5a44f255dd5f0b62d71c2a6 (diff)
downloadbrew-c84c8b1d0e5cd9759c32ea220359a15e2ba4ad5e.tar.bz2
Set patch name on initialization
Diffstat (limited to 'Library/Homebrew/patch.rb')
-rw-r--r--Library/Homebrew/patch.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb
index f648cfc7b..dbb2da843 100644
--- a/Library/Homebrew/patch.rb
+++ b/Library/Homebrew/patch.rb
@@ -88,13 +88,12 @@ class ExternalPatch < Patch
def initialize(strip, &block)
@strip = strip
- @resource = Resource.new(&block)
+ @resource = Resource.new("patch", &block)
@whence = :resource
end
def owner= owner
resource.owner = owner
- resource.name = "patch"
resource.version = resource.checksum || ERB::Util.url_encode(resource.url)
end