Skip to content

Commit

Permalink
[api] skip broken links in status#project
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Jan 30, 2012
1 parent 94ccc70 commit 7098f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/helpers/status_helper.rb
Expand Up @@ -372,6 +372,8 @@ def self.calc_status(dbproj, backend)
mypackages.values.each do |package|
if package.project == dbproj.name and package.link.project
newkey = package.link.project + "/" + package.link.package
# broken links
next unless mypackages.has_key? newkey
package.link.targetmd5 = mypackages[newkey].verifymd5
package.link.targetmd5 ||= mypackages[newkey].srcmd5
end
Expand Down

0 comments on commit 7098f2b

Please sign in to comment.