Skip to content

Commit

Permalink
[api] fix minatenance release for entire new package
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 11, 2011
1 parent 11f1487 commit 9ff5539
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/app/controllers/request_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ def create_create
unless e and DbPackage.exists_by_project_and_name( tprj, tpkg, follow_project_links=true, allow_remote_packages=true)
if action.value("type") == "maintenance_release"
newPackages << pkg.name
pkg.db_project.repositories.each do |repo|
repo.release_targets.each do |rt|
newTargets << rt.target_repository.db_project.name
end
end
next
else
render_error :status => 400, :errorcode => 'unknown_target_package',
Expand Down

0 comments on commit 9ff5539

Please sign in to comment.