diff options
| author | Uladzislau Shablinski | 2016-07-16 23:49:32 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-07-17 04:49:32 +0800 |
| commit | 242508fca4d2b167cef3c355722f3471594d7b4b (patch) | |
| tree | 9bc405894acb4f09fb96dce0b2935054a1e4efde /Library/Homebrew/software_spec.rb | |
| parent | ccb11935f612847145ffe95b3b70f23e621fd4aa (diff) | |
| download | brew-242508fca4d2b167cef3c355722f3471594d7b4b.tar.bz2 | |
software_spec: use version dups for resources (#534)
Also prevent the commit of formula's HeadVersion from passing to the resource.
This is a fix of #531
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 47bd1bd85..909819c33 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -53,7 +53,7 @@ class SoftwareSpec @resource.owner = self resources.each_value do |r| r.owner = self - r.version ||= version + r.version ||= (version.head? ? Version.create("HEAD") : version.dup) end patches.each { |p| p.owner = self } end |
