#397: Fixed: error at saving dependent_packages
This commit is contained in:
parent
23d3f8a0bc
commit
790cd05cae
|
@ -58,7 +58,7 @@ class BuildList::Package < ActiveRecord::Base
|
|||
protected
|
||||
|
||||
def normalize_dependent_packages
|
||||
self.dependent_packages = dependent_packages.split(/\s/).select(&:present?) if dependent_packages.present?
|
||||
self.dependent_packages = dependent_packages.to_s.split(/\s/).select(&:present?)
|
||||
end
|
||||
|
||||
def set_epoch
|
||||
|
|
|
@ -72,9 +72,9 @@ module AbfWorker
|
|||
def fill_container_data
|
||||
(options['packages'] || []).each do |package|
|
||||
package = subject.packages.build(package)
|
||||
package.package_type = package['fullname'] =~ /.*\.src\.rpm$/ ? 'source' : 'binary'
|
||||
package.project_id = subject.project_id
|
||||
package.platform_id = subject.save_to_platform_id
|
||||
package.package_type = package['fullname'] =~ /.*\.src\.rpm$/ ? 'source' : 'binary'
|
||||
package.project_id = subject.project_id
|
||||
package.platform_id = subject.save_to_platform_id
|
||||
package.save!
|
||||
end
|
||||
update_results
|
||||
|
|
Loading…
Reference in New Issue