From 8d7a9426af22c56629d2ec789e94224503732a17 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 13 Jun 2013 13:35:42 +0400 Subject: [PATCH] #167: added comments, updated ability.rb --- app/models/ability.rb | 2 -- lib/abf_worker/build_lists_publish_task_manager.rb | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 09a9ca41d..85eebe6be 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -171,8 +171,6 @@ class Ability cannot(:cancel, MassBuild) {|mass_build| mass_build.stop_build} - cannot(:regenerate_metadata, Repository) {|repository| !repository.platform.main?} - if @user.system? can :key_pair, Repository else diff --git a/lib/abf_worker/build_lists_publish_task_manager.rb b/lib/abf_worker/build_lists_publish_task_manager.rb index 88130d823..789d5791c 100644 --- a/lib/abf_worker/build_lists_publish_task_manager.rb +++ b/lib/abf_worker/build_lists_publish_task_manager.rb @@ -3,6 +3,7 @@ module AbfWorker class BuildListsPublishTaskManager REDIS_MAIN_KEY = 'abf-worker::build-lists-publish-task-manager::' + # LOCKED_REP_AND_PLATFORMS: ['save_to_repository_id-build_for_platform_id', ...] %w(RESIGN_REPOSITORIES PROJECTS_FOR_CLEANUP LOCKED_PROJECTS_FOR_CLEANUP