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

SWIG bindings: Support DownloadCallbacks user_data, unit tests #1939

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Dec 6, 2024

Closes: #1943

Adds support for the user_data argument to the repo::DownloadCallbacks::add_new_download method.

Its value can be set for different downloaders:

repo::FileDownloader: user_data can be passed as a parameter to the add method for the file being added.
repo::PackageDownloader: user_data can be passed as a parameter to the add method for the package being added.

The repo::Repo::set_user_data and repo::Repo::get_user_data methods to set/get user_data for each repository - used when downloading repository metadata.

Unit tests for all supported languages included.

@jrohel jrohel force-pushed the swig_Repo_DownloadCallbacks_user_data branch from 5d345a1 to 561bfc2 Compare December 8, 2024 22:15
@kontura kontura self-assigned this Dec 9, 2024
@kontura
Copy link
Contributor

kontura commented Dec 10, 2024

Thank you.

I would add some sort of documentation or perhaps tutorial example but that should be a separate PR.

@kontura kontura added this pull request to the merge queue Dec 10, 2024
Merged via the queue into rpm-software-management:main with commit 51317ce Dec 10, 2024
17 checks passed
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.

Missing SWIG bindings for repo::DownloadCallbacks "user_data"
2 participants