#403: Fixed: undefined local variable or method old_packages

This commit is contained in:
Vokhmin Alexey V 2014-06-23 21:19:24 +04:00
parent 0aff293ddc
commit 9b61b20733
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,6 @@ module AbfWorkerService
prepare_build_lists(projects_for_cleanup)
old_packages = packages_structure
projects_for_cleanup.each do |key|
Redis.current.lrem PROJECTS_FOR_CLEANUP, 0, key
packages = Redis.current.hget PACKAGES_FOR_CLEANUP, key
@ -164,6 +162,10 @@ module AbfWorkerService
@distrib_type ||= build_for_platform.distrib_type
end
def old_packages
@old_packages ||= packages_structure
end
def fill_in_packages
packages, build_list_ids, new_sources = packages_structure, [], {}
build_lists.each do |bl|