Skip to content

Commit

Permalink
[PR] Fixes #36748 - fix usage of deb copy api
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Jan 29, 2024
1 parent bf29264 commit 907c6b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/services/katello/pulp3/repository/apt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ def partial_repo_path
"/pulp/deb/#{repo.relative_path}/".sub('//', '/')
end

def multi_copy_units(repo_id_map, dependency_solving)
def multi_copy_units(repo_id_map, _dependency_solving)
tasks = []

if repo_id_map.values.pluck(:content_unit_hrefs).flatten.any?
data = PulpDebClient::Copy.new
data.dependency_solving = dependency_solving
data.dependency_solving = false
data.config = []
repo_id_map.each do |source_repo_ids, dest_repo_id_map|
dest_repo = ::Katello::Repository.find(dest_repo_id_map[:dest_repo])
Expand Down Expand Up @@ -211,9 +211,9 @@ def add_debs(source_repo_ids, filters, filter_list_map)
filter_list_map
end

def copy_content_from_mapping(repo_id_map, options = {})
def copy_content_from_mapping(repo_id_map, _options = {})
repo_id_map.each do |source_repo_ids, dest_repo_map|
filters = ContentViewDebFilter.where(:id => options[:filter_ids])
filters = ContentViewDebFilter.where(:id => dest_repo_map[:filter_ids])

filter_list_map = { whitelist_ids: [], blacklist_ids: [] }
filter_list_map = add_filter_content(source_repo_ids, filters, filter_list_map)
Expand All @@ -226,7 +226,7 @@ def copy_content_from_mapping(repo_id_map, options = {})
dest_repo_map[:content_unit_hrefs] = content_unit_hrefs.uniq.sort
end

dependency_solving = options[:solve_dependencies] || false
dependency_solving = false

multi_copy_units(repo_id_map, dependency_solving)
end
Expand Down

0 comments on commit 907c6b1

Please sign in to comment.