diff options
| -rw-r--r-- | Library/Homebrew/patch.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 95171840e..2fd33c01f 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -101,7 +101,7 @@ class ExternalPatch < Patch def owner= owner resource.owner = owner resource.name = "patch" - resource.version = resource.checksum + resource.version = resource.checksum || ERB::Util.url_encode(resource.url) end def apply |
