Skip to content

Commit

Permalink
Add inherit download_policy for apt on proxy
Browse files Browse the repository at this point in the history
(cherry picked from commit 931f92f)
  • Loading branch information
m-bucher authored and quba42 committed Dec 13, 2023
1 parent e60fe57 commit 77f22fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/services/katello/pulp3/repository/apt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def sync_url_params(sync_options)
end

def mirror_remote_options
policy = smart_proxy.download_policy
if smart_proxy.download_policy == SmartProxy::DOWNLOAD_INHERIT
policy = repo.root.download_policy
end

distributions = "#{repo.deb_releases}"
if Setting['deb_use_simple_publish'] and not distributions.split(' ').include? 'default'
distributions.concat(' default')
Expand Down

0 comments on commit 77f22fc

Please sign in to comment.