Fixed regexp in #create_rpm_build_task

This commit is contained in:
Vokhmin Alexey V 2013-11-22 01:04:04 +04:00
parent bcc9fa28da
commit 34b4447ec7
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ module AbfWorker
def create_rpm_build_task(save_to_repository_id, build_for_platform_id, testing) def create_rpm_build_task(save_to_repository_id, build_for_platform_id, testing)
key = "#{save_to_repository_id}-#{build_for_platform_id}" key = "#{save_to_repository_id}-#{build_for_platform_id}"
projects_for_cleanup = @redis.lrange(PROJECTS_FOR_CLEANUP, 0, -1).select do |k| projects_for_cleanup = @redis.lrange(PROJECTS_FOR_CLEANUP, 0, -1).select do |k|
(testing && k =~ /^testing-#{key}$/) || (!testing && k =~ /^[\d]+-#{key}$/) (testing && k =~ /^testing-[\d]+-#{key}$/) || (!testing && k =~ /^[\d]+-#{key}$/)
end end
# We should not to publish new builds into repository # We should not to publish new builds into repository