software_spec: remove confusing missing version error

This commit is contained in:
Bo Anderson 2024-07-25 02:05:40 +01:00
parent e44adc2c50
commit bbdf52cdc6
No known key found for this signature in database

View File

@ -87,8 +87,7 @@ class SoftwareSpec
resources.each_value do |r| resources.each_value do |r|
r.owner = self r.owner = self
next if r.version next if r.version
next if version.nil?
raise "#{full_name}: version missing for \"#{r.name}\" resource!" if version.nil?
r.version(version.head? ? Version.new("HEAD") : version.dup) r.version(version.head? ? Version.new("HEAD") : version.dup)
end end