Skip to content

Commit

Permalink
[api] follow renamed package model
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 7, 2013
1 parent 125157a commit d7b1dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/script/check_database
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ end

User.current = User.find_by_login('_nobody_')

packs = DbPackage.find :all, :conditions => "(develpackage_id is not null) or (develproject_id is not null)"
packs = Package.find :all, :conditions => "(develpackage_id is not null) or (develproject_id is not null)"
projects = Hash.new

packs.each do |p|
begin
p.resolve_devel_package
rescue DbPackage::CycleError => e
rescue Package::CycleError => e
projects[p.project.name] ||= Array.new
projects[p.project.name] << e.message
end
Expand Down

0 comments on commit d7b1dbe

Please sign in to comment.