Skip to content

Commit

Permalink
[api] skip if package is not readable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 16, 2012
1 parent 9078c58 commit 260d797
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/app/controllers/status_controller.rb
Expand Up @@ -410,10 +410,13 @@ def bsrequest
missingdeps << p unless ownbinaries.has_key?(p)
end
end


# Is the package visible
spkg = DbPackage.find_by_project_and_name req.action.source.project, req.action.source.package
next unless spkg

# if the package does not appear in build history, check flags
if everbuilt == 0
spkg = DbPackage.find_by_project_and_name req.action.source.project, req.action.source.package
buildflag=spkg.find_flag_state("build", srep.name, arch.to_s)
logger.debug "find_flag_state #{srep.name} #{arch.to_s} #{buildflag}"
if buildflag == 'disable'
Expand Down

0 comments on commit 260d797

Please sign in to comment.