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
This commit is contained in:
parent
ccb11935f6
commit
242508fca4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user