aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-14 12:38:06 -0500
committerJack Nagel2014-03-14 12:38:06 -0500
commit8a704df83bb160567a369289f31f5265071da0aa (patch)
treeb409e3af5b5650a363de5a7a439e0c97418ca29f /Library
parent48ceb3713fe12dce26802458ad551fe32fe750a4 (diff)
downloadhomebrew-8a704df83bb160567a369289f31f5265071da0aa.tar.bz2
Ensure patch cache path is unique even when checksum is missing
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/patch.rb2
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