#276: fixed condition of creating task for regenerate metadata for software center
This commit is contained in:
parent
fd3f096402
commit
12ceaefef4
|
@ -327,7 +327,7 @@ module AbfWorker
|
||||||
statuses = RepositoryStatus.where(:platform_id => platform.id)
|
statuses = RepositoryStatus.where(:platform_id => platform.id)
|
||||||
next if repos.find{ |r| r.repo_lock_file_exists? }
|
next if repos.find{ |r| r.repo_lock_file_exists? }
|
||||||
next if statuses.present? &&
|
next if statuses.present? &&
|
||||||
statuses.map{ |s| s.ready? || s.can_start_regeneration? || s.can_start_resign? }.uniq == [true]
|
statuses.map{ |s| s.ready? || s.can_start_regeneration? || s.can_start_resign? }.uniq != [true]
|
||||||
|
|
||||||
cmd_params = {
|
cmd_params = {
|
||||||
'RELEASED' => platform.released,
|
'RELEASED' => platform.released,
|
||||||
|
|
Loading…
Reference in New Issue