From 251b45843b1cd0153c7466bf10274cd43c66bbe9 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 31 May 2013 17:07:35 +0400 Subject: [PATCH] #118: fixed undefined local variable or method --- lib/abf_worker/build_lists_publish_task_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/abf_worker/build_lists_publish_task_manager.rb b/lib/abf_worker/build_lists_publish_task_manager.rb index c4e3ce04c..88130d823 100644 --- a/lib/abf_worker/build_lists_publish_task_manager.rb +++ b/lib/abf_worker/build_lists_publish_task_manager.rb @@ -254,7 +254,7 @@ module AbfWorker build_lists = build_lists.where('build_lists.id NOT IN (?)', locked_ids) unless locked_ids.empty? build_lists = build_lists.limit(150) - old_packages = packages_structure + old_packages = self.class.packages_structure projects_for_cleanup.each do |key| @redis.lrem PROJECTS_FOR_CLEANUP, 0, key @@ -301,7 +301,7 @@ module AbfWorker :extra => {:lock_str => lock_str} } - packages, build_list_ids, new_sources = packages_structure, [], {} + packages, build_list_ids, new_sources = self.class.packages_structure, [], {} build_lists.each do |bl| # remove duplicates of sources for different arches bl.packages.by_package_type('source').each{ |s| new_sources["#{s.fullname}"] = s.sha1 }