aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs/category_update_job.rb')
-rw-r--r--app/jobs/category_update_job.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/jobs/category_update_job.rb b/app/jobs/category_update_job.rb
index 7443099..e764ad8 100644
--- a/app/jobs/category_update_job.rb
+++ b/app/jobs/category_update_job.rb
@@ -5,8 +5,8 @@ class CategoryUpdateJob < ApplicationJob
category_path, options = args
model = Portage::Repository::Category.new(category_path)
- category = Category.find_by(:name, model.name) || Category.new
- idx_packages = Package.find_all_by(:category, model.name) || []
+ category = CategoryRepository.find_by(:name, model.name) || Category.new
+ idx_packages = PackageRepository.find_all_by(:category, model.name) || []
if category.needs_import? model
category.import! model