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

Fix change in python API of package files #362

Merged
merged 2 commits into from
May 16, 2023

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Apr 26, 2023

The change was introduced in #316

For: #360

The file digest should be present only when loaded to preserve API.
The digests are present only when specifically parsing filelists-ext.
Copy link
Contributor

@dralley dralley left a comment

Choose a reason for hiding this comment

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

Seems OK to me. If the digest is only present when you deliberately act to parse a different file, then there shouldn't be a breaking change for existing code.

However to avoid this in the future maybe it makes sense to return a class/dataclass rather than a tuple, so that data can be added without breaking API. Maybe for 1.0? (not backportable obviously)

@m-blaha m-blaha merged commit 5952100 into rpm-software-management:master May 16, 2023
3 checks passed
kontura added a commit to kontura/createrepo_c that referenced this pull request Oct 4, 2023
The fix in rpm-software-management#362
resolved the situation when getting pkg files from python. We need to
also fix setting pkg files.

Make the digest optional in order to still support files without it.
kontura added a commit to kontura/createrepo_c that referenced this pull request Oct 5, 2023
The fix in rpm-software-management#362
resolved the situation when getting pkg files from python. We need to
also fix setting pkg files.

Make the digest optional in order to still support setting files without it.
kontura added a commit that referenced this pull request Oct 6, 2023
The fix in #362
resolved the situation when getting pkg files from python. We need to
also fix setting pkg files.

Make the digest optional in order to still support setting files without it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants