Set patch name on initialization
This commit is contained in:
parent
e0216d95af
commit
c84c8b1d0e
@ -88,13 +88,12 @@ class ExternalPatch < Patch
|
|||||||
|
|
||||||
def initialize(strip, &block)
|
def initialize(strip, &block)
|
||||||
@strip = strip
|
@strip = strip
|
||||||
@resource = Resource.new(&block)
|
@resource = Resource.new("patch", &block)
|
||||||
@whence = :resource
|
@whence = :resource
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner= owner
|
def owner= owner
|
||||||
resource.owner = owner
|
resource.owner = owner
|
||||||
resource.name = "patch"
|
|
||||||
resource.version = resource.checksum || ERB::Util.url_encode(resource.url)
|
resource.version = resource.checksum || ERB::Util.url_encode(resource.url)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user