#756: refactoring #fill_container_data

This commit is contained in:
Vokhmin Alexey V 2013-02-06 18:23:40 +04:00
parent 705e60bbbc
commit 44663efa1f
1 changed files with 1 additions and 2 deletions

View File

@ -57,8 +57,7 @@ module AbfWorker
end
def fill_container_data
packages = options['packages'] || []
packages.each do |package|
(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