Skip to content

Commit

Permalink
[api] lookup update projects for channel package search
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Sep 17, 2014
1 parent 71c786f commit 78f9e47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/models/package.rb
Expand Up @@ -735,6 +735,10 @@ def add_channels
package_name = li['package']
end
end
# Update projects are usually used in _channels
if prj = Project.find_by_name(project_name) and a = prj.find_attribute('OBS', 'UpdateProject') and a.values[0]
project_name = a.values[0].value
end
parent = nil
ChannelBinary.find_by_project_and_package(project_name, package_name).each do |cb|
parent ||= self.project.find_parent
Expand Down

0 comments on commit 78f9e47

Please sign in to comment.