-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #36748 - fix usage of deb copy api #10734
Conversation
Issues: #36748 |
5e29f59
to
c52d713
Compare
c52d713
to
139e4b9
Compare
139e4b9
to
96ec110
Compare
96ec110
to
eaaf3dd
Compare
eaaf3dd
to
c48b175
Compare
[test katello] |
@@ -203,9 +212,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 = {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think copy_content_from_mapping
will even run for Debian content, so these methods can likely be taken out entirely. If you trace back references to copy_content_from_mapping
, you'll eventually get here:
plan_action(Repository::MultiCloneToVersion, separated_repo_map[:pulp3_yum_multicopy], version) |
That shows that we only do the whole "multi copy" workflow for yum content anyway.
This wasn't always the case, but it has been since Katello 4.3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although, if dep solving is something that is a TODO for debian content, then I'd recommend keeping these methods of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we will need it eventually for the IncrementalUpdate to work : #10847
Dependency Solving for debian is currently out-of-scope and due to various reasons like lacking support for efficient handling (sorting and comparing) of debian version within PostgreSQL.
This is also the reason I added a PR to make sure dep-solving with debs is never even tried 😈 : #10734
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking fine to me! I haven't tested it since the deb incremental update bits aren't there, will do so in the next PR.
Pulp-Deb does not support dependency-solving.
Also we should use the correct name of the copy-api class.