Skip to content

Commit

Permalink
[api] extra filter for uniq branch packages
Browse files Browse the repository at this point in the history
a global branch could still branched the same package multiple times when it got
found later via update project from different ga project
  • Loading branch information
adrianschroeter committed Jul 10, 2015
1 parent c9f3f22 commit 3848293
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/app/helpers/branch_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ def find_package_targets
end

@packages.each { |p| extend_packages_to_link(p) }

# avoid double hits eg, when the same update project is used by multiple GA projects
seen={}
@packages.each do |p|
@packages.delete(p) if seen[p[:package]]
seen[p[:package]]=true
end
end

def lookup_incident_pkg(p)
Expand Down

0 comments on commit 3848293

Please sign in to comment.