Skip to content

Commit

Permalink
[api] Fix releasing multibuild package
Browse files Browse the repository at this point in the history
Introduced in f08032e.
Package.get_by_name_and_project raised an UnknownObject exception for multibuild containers
as the follow_multibuild option was missing. Just using now the pkg object.
  • Loading branch information
ChrisBr committed Oct 18, 2017
1 parent 96631de commit c5652af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1459,8 +1459,7 @@ def package_command_release
Project.get_by_name(params[:target_project])
_package_command_release_manual_target(pkg, multibuild_container)
else
spkg = Package.get_by_project_and_name(params[:project], params[:package])
verify_repos_match!(spkg.project)
verify_repos_match!(pkg.project)

# loop via all defined targets
pkg.project.repositories.each do |repo|
Expand Down

0 comments on commit c5652af

Please sign in to comment.