Skip to content
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

Fixed copy to always include explicitly-requested packages. #1692

Merged
merged 1 commit into from
May 6, 2020

Conversation

ggainey
Copy link
Contributor

@ggainey ggainey commented May 5, 2020

fixes #6519

@pulpbot
Copy link
Member

pulpbot commented May 5, 2020

Attached issue: https://pulp.plan.io/issues/6519

@@ -838,7 +838,6 @@ def resolve_dependencies(self, unit_repo_map):
for unit in units:
if unit.pulp_type in {"rpm.package", "rpm.modulemd", "rpm.modulemd_defaults"}:
solvables.append(self.mapping.get_solvable(unit.pk, repo))
else:
passthrough[repo].add(unit.pk)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line needs to be de-indented to break it out of the conditional, otherwise content units like errata won't be "passed through"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ugh, concur - let me fix and do more testing

@ggainey ggainey requested a review from a team May 5, 2020 16:01
@dralley
Copy link
Contributor

dralley commented May 5, 2020

Apart from the failing style lints, lgtm

Added a recursive-copy test to notice the problem.

fixes #6519
@dralley dralley merged commit f40cd7b into pulp:master May 6, 2020
@pulpbot pulpbot mentioned this pull request May 7, 2020
@ggainey ggainey deleted the 6519_copydeps branch March 31, 2023 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants