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

Set is_modular flag correctly if there is a module with no artifacts … #1579

Merged
merged 1 commit into from Jan 9, 2020

Conversation

goosemania
Copy link
Member

@goosemania goosemania commented Jan 9, 2020

…in a repo

Checking if a quesryset is empty because:
Empty queryset Q() combined with __raw__ query makes only the __raw__ part applied (the root cause of the bug).
Non-empty queryset combined with __raw__ evaluates as AND expression, so both are applied (expected).

closes #5942
https://pulp.plan.io/issues/5942

…in a repo

Checking if a quesryset is empty because:
Empty queryset Q() combined with __raw__ query makes only the __raw_part applied (the root cause of the bug).
Non-empty queryset combined with __raw__ evaluates as AND expression, so both are applied (expected).

closes #5942
https://pulp.plan.io/issues/5942
:param modulemd: module for which artifacts should be updated
:type modulemd: pulp_rpm.plugins.db.models.Modulemd
"""
delta = {'is_modular': True}
Copy link
Member

Choose a reason for hiding this comment

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

you can use the 'FIELD" variable here

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

2 participants