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

Test that reposync downloads duplicated NEVRA only once #1586

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Nov 4, 2024

In case the repository metadata contain the same NEVRA multiple times,
the download of such package might end with checksum error.
See https://issues.redhat.com/browse/RHEL-64320
By default re.search() (used by "stdout does not contain") does not
match across multiple lines. To bypass this limitation and check that
the package name is not present on multiple lines, use "(.|\n)*" pattern
instead of ".*".

Before this patch, the step didn't actually test anything and would
always pass.
@kontura kontura self-assigned this Nov 7, 2024
@kontura
Copy link
Contributor

kontura commented Dec 10, 2024

Tests pass locally.

@kontura kontura merged commit 421b76f into dnf-4-stack Dec 10, 2024
2 of 3 checks passed
@kontura kontura deleted the mblaha/reposync-duplicates branch December 10, 2024 08:53
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.

2 participants