#403: Fixed: undefined local variable or method old_packages
This commit is contained in:
parent
0aff293ddc
commit
9b61b20733
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue