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

[PULP-317] Make package layout in the published repository configurable #3878

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Feb 12, 2025

closes #3874

@dralley dralley marked this pull request as draft February 12, 2025 20:01
@dralley dralley force-pushed the layout branch 3 times, most recently from 1ae6fc5 to 54ad435 Compare February 12, 2025 20:12
@dralley dralley changed the title Make package layout in the published repository configurable [PULP-317] Make package layout in the published repository configurable Feb 12, 2025

# distribute
body = rpm_distribution_factory(publication=publication_href)
distribution = gen_object_with_cleanup(rpm_distribution_api, body)
Copy link
Member

@pedro-psb pedro-psb Feb 13, 2025

Choose a reason for hiding this comment

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

@dralley rpm_distribution_factory returns a client RpmDistributionResponse (or something like that, you can find all those client request/response classes at pulp-openapi-generator/pulp_rpm-client/ dir.
And all those factory fixtures already creates the resource with the cleanup hook.

So you can call the factory without worryng with the api call/cleanup:

dsitribution = rpm_distribution_factory(publication=publication_href)

obs: pulp_smash factories did generate the body data, but every other I've seen just return the object.

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.

[PULP-317] Allow configuring RPM repository layout to use a flat directory structure
2 participants