Skip to content

Commit

Permalink
[api] avoid to copy from same incident if a mainteannce_request tries…
Browse files Browse the repository at this point in the history
… to update the package
  • Loading branch information
adrianschroeter committed Mar 30, 2012
1 parent c028312 commit c8e2bfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/app/helpers/maintenance_helper.rb
Expand Up @@ -611,8 +611,10 @@ def do_branch params
end
end
if incident_pkg
p[:copy_from_devel] = incident_pkg
logger.info "sources will get copied from incident package #{p[:copy_from_devel].db_project.name}/#{p[:copy_from_devel].name}"
unless incident_pkg.db_project == mp
p[:copy_from_devel] = incident_pkg
logger.info "sources will get copied from incident package #{p[:copy_from_devel].db_project.name}/#{p[:copy_from_devel].name}"
end
end
elsif not copy_from_devel and p[:package].class == DbPackage and ( p[:package].develproject or p[:package].develpackage or p[:package].db_project.develproject )
p[:package] = p[:package].resolve_devel_package
Expand Down

0 comments on commit c8e2bfb

Please sign in to comment.