Skip to content

Commit

Permalink
Set package_find_options to find the package to rebuild
Browse files Browse the repository at this point in the history
The package that is going to be rebuilt, should be searched with the
conditions set by package_find_options.
So this hash is set in the token workflow too.

Co-authored-by: Saray Cabrera Padrón <scabrerapadron@suse.de>
  • Loading branch information
vpereira and saraycp committed Sep 23, 2021
1 parent 6facbf6 commit 990b4f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/app/models/token/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def call(options)
rescue Octokit::Unauthorized, Gitlab::Error::Unauthorized => e
raise Token::Errors::SCMTokenInvalid, e.message
end

# Only used by rebuild steps
def package_find_options
{ use_source: false, follow_project_links: true, follow_multibuild: true }
end
end

# == Schema Information
Expand Down

0 comments on commit 990b4f6

Please sign in to comment.